:root {
  --paper: #FAF5EC;
  --paper-2: #F3ECDE;
  --ink: #2B2622;
  --muted: #857B6E;
  --hair: #E4DACA;
  --surface: #FFFFFF;
  --accent: #EF6C4D;
  --accent-ink: #C0472B;

  --c-animal: #E39A2E;
  --c-flag:   #3E6FD6;
  --c-dino:   #37A05B;
  --c-fruit:  #D8433F;
  --c-vehicle:#8A5CD8;

  --shadow: 0 1px 2px rgba(60,44,28,.06), 0 10px 26px -12px rgba(60,44,28,.28);
  --shadow-lift: 0 4px 8px rgba(60,44,28,.08), 0 24px 44px -16px rgba(60,44,28,.36);
  --maxw: 1080px;
  --r: 18px;
  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B1815; --paper-2: #221E1A; --ink: #F2EADD; --muted: #A79C8D;
    --hair: #38312A; --surface: #262019; --accent: #F5825F; --accent-ink: #F5A183;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 28px -14px rgba(0,0,0,.7);
    --shadow-lift: 0 6px 12px rgba(0,0,0,.45), 0 28px 50px -18px rgba(0,0,0,.8);
  }
}
:root[data-theme="light"] {
  --paper:#FAF5EC; --paper-2:#F3ECDE; --ink:#2B2622; --muted:#857B6E; --hair:#E4DACA;
  --surface:#FFFFFF; --accent:#EF6C4D; --accent-ink:#C0472B;
  --shadow:0 1px 2px rgba(60,44,28,.06),0 10px 26px -12px rgba(60,44,28,.28);
  --shadow-lift:0 4px 8px rgba(60,44,28,.08),0 24px 44px -16px rgba(60,44,28,.36);
}
:root[data-theme="dark"] {
  --paper:#1B1815; --paper-2:#221E1A; --ink:#F2EADD; --muted:#A79C8D; --hair:#38312A;
  --surface:#262019; --accent:#F5825F; --accent-ink:#F5A183;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 12px 28px -14px rgba(0,0,0,.7);
  --shadow-lift:0 6px 12px rgba(0,0,0,.45),0 28px 50px -18px rgba(0,0,0,.8);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
img { max-width: 100%; display: block; }

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(var(--hair) 1px, transparent 1.4px);
  background-size: 26px 26px; opacity: .5;
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- Topbar + hero ---------- */
header { padding: 26px 0 20px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 44px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
  transform: rotate(-6deg); box-shadow: var(--shadow);
}
.brand .name { font-weight: 800; letter-spacing: -.01em; font-size: 19px; }
.brand .name span { color: var(--accent); }
.lang { display: inline-flex; gap: 2px; background: var(--surface); border: 1px solid var(--hair);
  border-radius: 999px; padding: 3px; box-shadow: var(--shadow); }
.lang a { text-decoration: none; font-weight: 700; font-size: 13px; color: var(--muted);
  padding: 6px 13px; border-radius: 999px; letter-spacing: .03em; }
.lang a.lang-cur { background: var(--accent); color: #fff; }

.hero-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); margin: 8px 0 18px; }
.hero h1 { font-size: clamp(34px, 6.2vw, 62px); line-height: 1.08; letter-spacing: -.025em;
  font-weight: 800; margin: 0 0 22px; text-wrap: balance; max-width: 16ch; }
.hero h1 .u { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 40%, transparent) 0); padding: 0 .05em; }
.hero p.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 46ch; margin: 0 0 32px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--hair); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.plat { color: var(--muted); font-size: 13.5px; margin-left: 4px; }

/* ---------- Origin ---------- */
.origin { margin: 78px 0 20px; }
.origin .card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r);
  padding: 34px clamp(24px,4vw,44px); box-shadow: var(--shadow); position: relative; max-width: 760px; }
.origin .quote-mark { position: absolute; top: -14px; left: 28px; font-size: 64px; line-height: 1;
  color: var(--accent); opacity: .9; font-weight: 800; }
.origin p { margin: 0 0 16px; font-size: clamp(16px,1.9vw,18.5px); }
.origin p:last-child { margin-bottom: 0; }
.origin .sig { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* ---------- Section heads ---------- */
.sec { padding: 62px 0 8px; }
.sec-label { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px; }
.sec-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.02em;
  margin: 0 0 8px; text-wrap: balance; }
.sec-sub { color: var(--muted); font-size: 16px; margin: 0 0 30px; max-width: 52ch; }

/* ---------- App cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.card-app { --c: var(--accent); display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--hair); border-top: 5px solid var(--c); border-radius: var(--r);
  padding: 22px 20px 20px; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease; position: relative; overflow: hidden; }
.card-app::after { content: ""; position: absolute; right: -30px; top: -30px; width: 96px; height: 96px;
  border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, transparent); }
.card-app:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card-app:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.card-app .ic { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 16px; position: relative; z-index: 1;
  box-shadow: 0 4px 12px -3px rgba(0,0,0,.28); }
.card-app .theme { font-size: 13px; font-weight: 700; color: var(--c); letter-spacing: .02em; }
.card-app h3 { margin: 3px 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.card-app .desc { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.card-app .go { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--c);
  display: inline-flex; align-items: center; gap: 6px; }
.card-app .go svg { transition: transform .18s ease; }
.card-app:hover .go svg { transform: translateX(3px); }

/* ---------- Modes ---------- */
.modes-wrap { background: var(--paper-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-top: 70px; }
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 8px; }
.mode { background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 14px 15px; box-shadow: var(--shadow); }
.mode .mi { font-size: 22px; line-height: 1; font-weight: 800; }
.mode .mn { font-weight: 700; font-size: 14.5px; margin: 8px 0 2px; }
.mode .md { color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* ---------- Philosophy ---------- */
.philos { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 22px; margin-top: 26px; }
.philos .p { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.philos .p b { font-size: 18px; letter-spacing: -.01em; display: block; margin-bottom: 6px; }
.philos .p span { color: var(--muted); font-size: 14.5px; }

/* ---------- Coming soon ---------- */
.soon-card { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(30px,5vw,52px);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--surface);
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--hair)); box-shadow: var(--shadow); }
.soon-badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em;
  color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 16%, transparent);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.soon-card h2 { font-size: clamp(24px,3.6vw,36px); margin: 0 0 14px; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; line-height: 1.18; }
.soon-card p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 56ch; }
.soon-dots { display: flex; gap: 7px; margin-top: 24px; }
.soon-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: .35; animation: soonPulse 1.4s ease-in-out infinite; }
.soon-dots span:nth-child(2){ animation-delay: .2s; } .soon-dots span:nth-child(3){ animation-delay: .4s; }
@keyframes soonPulse { 0%,100%{ opacity:.25; transform: translateY(0);} 50%{ opacity:1; transform: translateY(-4px);} }

/* ---------- Footer ---------- */
footer { padding: 60px 0 70px; margin-top: 40px; border-top: 1px solid var(--hair); }
.foot-cta { background: var(--ink); color: var(--paper); border-radius: 22px; padding: clamp(30px,5vw,52px);
  text-align: center; margin-bottom: 46px; box-shadow: var(--shadow-lift); }
.foot-cta h2 { font-size: clamp(24px,3.6vw,34px); margin: 0 0 12px; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.foot-cta p { margin: 0 0 24px; opacity: .8; font-size: 16px; }
.foot-cta .btn-primary { background: var(--accent); }
.btn-store svg { margin-top: -2px; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13.5px; }
.foot-meta .note { max-width: 52ch; }
.foot-lang a { color: var(--accent-ink); font-weight: 700; text-decoration: none; }

@media (max-width: 560px) {
  header { padding-top: 20px; }
  .topbar { margin-bottom: 30px; }
  .origin .card { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
