:root {
  --bg: #ffffff;
  --surface: #fafbfc;
  --text: #2d3436;
  --text-secondary: #636e72;
  --text-light: #b2bec3;
  --primary: #6c63ff;
  --border: #ecf0f1;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  text-align: center;
}

header.site a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

h1 {
  font-size: 28px;
  margin: 0 0 8px;
}

.updated {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 24px;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 32px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.lang-switch a {
  padding: 6px 14px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.lang-switch a.active {
  background: var(--primary);
  color: #fff;
}

section.policy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 16px;
}

section.policy h2 {
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--text);
}

section.policy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  white-space: pre-wrap;
}

.steps,
.data-list {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 15px;
}

.steps li,
.data-list li {
  margin: 8px 0;
}

.notice {
  border-color: rgba(108, 99, 255, 0.35);
}

.notice strong {
  color: var(--text);
}

.intro {
  background: var(--surface);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 28px;
}

.intro p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
}

footer a {
  color: var(--text-light);
  margin: 0 8px;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.store-button.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(108, 99, 255, 0.45);
}

.muted {
  color: var(--text-light);
  font-size: 13px;
  margin-top: 12px;
}

/* ============================================================
   Landing page (.lp) — marketing home, scoped under body.lp
   ============================================================ */

:root {
  --lp-ink: #1a1f36;
  --lp-grad: linear-gradient(135deg, #6c63ff 0%, #8a7cff 100%);
}

body.lp {
  background: var(--bg);
  color: var(--lp-ink);
}

body.lp main {
  max-width: 1080px;
  padding: 0 24px 0;
}

body.lp h1,
body.lp h2,
body.lp h3 {
  letter-spacing: -0.02em;
  line-height: 1.18;
}

/* Nav */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
}

.lp-brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--lp-ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-nav-links a {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
}

.lp-nav-links a:hover { color: var(--lp-ink); }

.lp-nav-cta {
  background: var(--primary);
  color: #fff !important;
}

.lp-nav-cta:hover { color: #fff; opacity: 0.92; }

/* Hero */
.lp-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 64px;
}

.lp-eyebrow {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.lp-hero h1 {
  margin: 0 0 20px;
  font-size: 52px;
  font-weight: 800;
}

.lp-accent {
  background: var(--lp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-sub {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.lp-hero-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-light);
}

/* Store buttons */
.lp-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-store-buttons.center { justify-content: center; }

.lp-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 13px;
  background: var(--lp-ink);
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.lp-store-btn:hover { transform: translateY(-2px); opacity: 0.94; }

.lp-store-icon {
  width: 24px;
  height: 24px;
  flex: none;
  background: #fff;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E");
}

.lp-store-icon.play {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M325.3 234.3 104.6 13l280.8 161.2-60.1 60.1zM47 0C34 6.8 25.3 19.2 25.3 35.3v441.3c0 16.1 8.7 28.5 21.7 35.3l256.6-256L47 0zm425.2 225.6-58.9-34.1-65.7 64.5 65.7 64.5 60.1-34.1c18-14.3 18-46.5-1.2-60.8zM104.6 499l220.7-221.3 60.1 60.1L104.6 499z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M325.3 234.3 104.6 13l280.8 161.2-60.1 60.1zM47 0C34 6.8 25.3 19.2 25.3 35.3v441.3c0 16.1 8.7 28.5 21.7 35.3l256.6-256L47 0zm425.2 225.6-58.9-34.1-65.7 64.5 65.7 64.5 60.1-34.1c18-14.3 18-46.5-1.2-60.8zM104.6 499l220.7-221.3 60.1 60.1L104.6 499z'/%3E%3C/svg%3E");
}

.lp-store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.lp-store-label small { font-size: 10px; opacity: 0.82; }
.lp-store-label strong { font-size: 16px; font-weight: 700; }

/* Device frame (holds real app screenshots) */
.lp-hero-visual { display: flex; justify-content: center; }

.lp-device {
  width: 100%;
  max-width: 290px;
  padding: 10px;
  border-radius: 40px;
  background: #11142a;
  box-shadow: 0 36px 70px -34px rgba(108, 99, 255, 0.55), 0 10px 30px rgba(17, 20, 42, 0.22);
}

.lp-device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}

.lp-device-lg { max-width: 320px; }

/* Trust strip */
.lp-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px 28px;
  margin: 0 0 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.lp-strip div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}

.lp-strip strong { font-size: 17px; }
.lp-strip span { font-size: 13px; color: var(--text-light); }

/* Feature rows */
.lp-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}

.lp-feature.reverse .lp-feature-text { order: 2; }

.lp-feature-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.lp-feature-kicker.center { display: inline-block; }

.lp-feature h2 {
  margin: 0 0 16px;
  font-size: 34px;
  font-weight: 800;
}

.lp-feature p {
  margin: 0 0 20px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.lp-check {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-check li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-ink);
}

.lp-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lp-grad);
  -webkit-mask: center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask: center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Feature visuals */
.lp-feature-visual { display: flex; justify-content: center; }

/* Grid feature cards */
.lp-grid-feature {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 0 72px;
}

.lp-gcard {
  padding: 28px 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.lp-gicon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(108, 99, 255, 0.12);
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
}

.lp-gcard h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.lp-gcard p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Collaboration */
.lp-collab {
  padding: 80px 32px;
  margin: 0 0 16px;
  text-align: center;
  border-radius: 26px;
  background: var(--lp-grad);
  color: #fff;
}

.lp-collab .lp-feature-kicker {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.lp-collab h2 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 800;
}

.lp-collab-sub {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.lp-avatars {
  display: flex;
  justify-content: center;
}

.lp-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-left: -12px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--lp-ink);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.lp-avatar:first-child { margin-left: 0; }
.lp-avatar.a1 { background: #4dabf7; }
.lp-avatar.a2 { background: #ff8787; }
.lp-avatar.a3 { background: #51cf66; }
.lp-avatar.a4 { background: var(--lp-ink); font-size: 15px; }

/* CTA */
.lp-cta {
  padding: 88px 24px;
  text-align: center;
}

.lp-cta h2 {
  margin: 0 0 14px;
  font-size: 40px;
  font-weight: 800;
}

.lp-cta p {
  margin: 0 0 30px;
  font-size: 18px;
  color: var(--text-secondary);
}

/* Footer */
.lp-footer {
  margin-top: 0;
  padding: 48px 24px 64px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-light);
}

.lp-footer-brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--lp-ink);
  letter-spacing: -0.03em;
}

.lp-footer > p { margin: 8px 0 20px; font-size: 14px; }

.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.lp-footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.lp-footer-links a:hover { color: var(--primary); }

.lp-footer-contact { font-size: 13px; }
.lp-footer-copy { margin-top: 6px; font-size: 12px; }

/* Responsive */
@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; gap: 36px; padding: 36px 0 48px; }
  .lp-hero h1 { font-size: 40px; }
  .lp-sub { font-size: 16px; }
  .lp-feature { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
  .lp-feature.reverse .lp-feature-text { order: 0; }
  .lp-feature h2 { font-size: 28px; }
  .lp-strip { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .lp-grid-feature { grid-template-columns: repeat(2, 1fr); }
  .lp-collab h2 { font-size: 28px; }
  .lp-cta h2 { font-size: 30px; }
  .lp-nav-links a:not(.lp-nav-cta) { display: none; }
}

@media (max-width: 480px) {
  .lp-grid-feature { grid-template-columns: 1fr; }
  .lp-strip { grid-template-columns: 1fr 1fr; }
  .lp-hero h1 { font-size: 34px; }
}

/* ============================================================
   Interactions & motion (progressive — only active with .js)
   ============================================================ */

html { scroll-behavior: smooth; }
body.lp { overflow-x: clip; }

/* Animated aurora blobs behind the hero */
.lp-hero { position: relative; }
.lp-hero::before,
.lp-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.lp-hero::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle at 30% 30%, #8a7cff, transparent 70%);
  animation: lp-float-a 14s ease-in-out infinite;
}
.lp-hero::after {
  width: 360px;
  height: 360px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle at 60% 40%, #63c7ff, transparent 70%);
  animation: lp-float-b 18s ease-in-out infinite;
}

@keyframes lp-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.12); }
}
@keyframes lp-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -30px) scale(1.1); }
}

/* Animated gradient on the brand accent word */
.lp-accent {
  background: linear-gradient(100deg, #6c63ff, #8a7cff, #63c7ff, #6c63ff);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lp-shimmer 6s linear infinite;
}
@keyframes lp-shimmer {
  to { background-position: 280% 0; }
}

/* Nav elevates after scroll */
.lp-nav { transition: box-shadow 0.3s ease, background 0.3s ease; }
.lp-nav.scrolled {
  box-shadow: 0 6px 24px -16px rgba(17, 20, 42, 0.5);
  background: rgba(255, 255, 255, 0.92);
}

/* Device: gentle idle float + interactive tilt */
.lp-device {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.lp-hero-visual .lp-device { animation: lp-bob 6s ease-in-out infinite; }
@keyframes lp-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.lp-device:hover {
  box-shadow: 0 50px 90px -30px rgba(108, 99, 255, 0.6), 0 14px 36px rgba(17, 20, 42, 0.28);
}
.lp-hero-visual .lp-device:hover { animation-play-state: paused; }

/* Store buttons: shine sweep + lift */
.lp-store-btn { position: relative; overflow: hidden; }
.lp-store-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.lp-store-btn:hover::after { left: 140%; }

/* Card / chip micro-interactions */
.lp-gcard {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.lp-gcard:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 24px 44px -28px rgba(108, 99, 255, 0.5);
}
.lp-gcard .lp-gicon { transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
.lp-gcard:hover .lp-gicon { transform: scale(1.12) rotate(-6deg); }

.lp-strip div { transition: transform 0.28s ease; }
.lp-strip div:hover { transform: translateY(-4px); }

.lp-avatar { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.lp-avatars:hover .lp-avatar { transform: translateY(-6px); }

.lp-nav-cta { transition: transform 0.2s ease, opacity 0.2s ease; }
.lp-nav-cta:hover { transform: translateY(-2px); }

/* CTA section ambient glow */
.lp-cta { position: relative; overflow: hidden; }
.lp-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 50% -60% 50%;
  width: 620px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.18), transparent 70%);
}

/* Scroll-reveal — only when JS is active; no-JS shows everything */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .reveal-zoom { transform: translateY(28px) scale(0.96); }
.js .reveal-zoom.in { transform: none; }

/* Respect reduced-motion: disable all decorative motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-hero::before,
  .lp-hero::after,
  .lp-accent,
  .lp-hero-visual .lp-device { animation: none; }
  .js .reveal,
  .js .reveal-zoom {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .lp-device,
  .lp-gcard,
  .lp-store-btn::after { transition: none; }
}
