:root {
  --paper: #FFFFFF;
  --cream: #FFFBF2;
  --cream-2: #FFF4DC;
  --mol: #FFC33D;
  --mol-soft: #FFE49B;
  --amber: #D98D0E;
  --soil: #8B5E3C;
  --soil-soft: #D9BFA3;
  --mole: #2E2A28;
  --nose: #E8734A;
  --leaf: #2F8F4E;
  --ink: #1C1A18;
  --ink-2: #5C5651;
  --ink-3: #9A938C;
  --line: #EFE7DA;
  --sans: 'Pretendard', 'Pretendard Variable', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1180px;
  --sh-s: 0 2px 8px rgba(139, 94, 60, .06);
  --sh-m: 0 10px 30px -12px rgba(139, 94, 60, .18);
  --sh-l: 0 24px 60px -20px rgba(139, 94, 60, .26);
}

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

html {
  scroll-behavior: smooth
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

::selection {
  background: var(--mol);
  color: var(--mole)
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s
}

nav.stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -14px rgba(139, 94, 60, .4)
}

.nav-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: var(--sh-s)
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-2)
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color .2s
}

.nav-links a:hover {
  color: var(--amber)
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s, background .2s
}

.btn-primary {
  background: var(--mol);
  color: var(--mole);
  box-shadow: 0 8px 22px -8px rgba(255, 195, 61, .9)
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #FFCF5C;
  box-shadow: 0 14px 30px -8px rgba(255, 195, 61, 1)
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line)
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--soil-soft);
  box-shadow: var(--sh-m)
}

.btn-lg {
  padding: 17px 32px;
  font-size: 15.5px
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--mol-soft);
  background: var(--cream-2);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--amber);
  text-transform: uppercase
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  position: relative
}

.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--amber);
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite
}

@keyframes ping {

  75%,
  100% {
    transform: scale(3);
    opacity: 0
  }
}

.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1)
}

.rv.in {
  opacity: 1;
  transform: none
}

.rv[data-d="1"] {
  transition-delay: .08s
}

.rv[data-d="2"] {
  transition-delay: .16s
}

.rv[data-d="3"] {
  transition-delay: .24s
}

.rv[data-d="4"] {
  transition-delay: .32s
}

.rv[data-d="5"] {
  transition-delay: .40s
}

header {
  padding: 150px 0 90px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(900px 500px at 78% 18%, rgba(255, 195, 61, .24), transparent 62%), radial-gradient(700px 420px at 6% 90%, rgba(255, 228, 155, .32), transparent 62%), linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%)
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center
}

h1 {
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.045em;
  margin: 24px 0 22px;
  white-space: nowrap
}

h1 .hl {
  position: relative;
  display: inline-block;
  z-index: 1
}

h1 .hl::after {
  content: '';
  position: absolute;
  left: -.06em;
  right: -.06em;
  bottom: .05em;
  height: .34em;
  background: var(--mol);
  border-radius: 6px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: swipe .9s cubic-bezier(.16, 1, .3, 1) .5s forwards
}

@keyframes swipe {
  to {
    transform: scaleX(1)
  }
}

.hero-sub {
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.78;
  color: var(--ink-2);
  max-width: 490px;
  font-weight: 500
}

.hero-sub b {
  color: var(--ink);
  font-weight: 800;
  background: linear-gradient(180deg, transparent 60%, var(--mol-soft) 60%)
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap
}

.hero-note {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3)
}

.hero-note span {
  display: flex;
  align-items: center;
  gap: 6px
}

.hero-note i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mol)
}

.stage {
  position: relative;
  max-width: 470px;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 1/1.22
}

.stage svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  position: relative;
  z-index: 2
}

.mole-img {
  position: absolute;
  left: 50%;
  top: 36.5%;
  width: 28%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 14px 26px rgba(139, 94, 60, .3));
  animation: bob 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1
}

@keyframes bob {

  0%,
  100% {
    transform: translate(-50%, -50%)
  }

  50% {
    transform: translate(-50%, -57%)
  }
}

.ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5
}

.ring-run {
  fill: none;
  stroke: var(--mol);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 170 1000;
  animation: orbit 5s linear infinite
}

@keyframes orbit {
  to {
    stroke-dashoffset: -1170
  }
}

.spoke {
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 2 6
}

.node circle {
  fill: var(--paper);
  stroke: var(--line);
  stroke-width: 1.5;
  transition: stroke .3s, fill .3s;
  filter: drop-shadow(0 4px 12px rgba(139, 94, 60, .12))
}

.node:hover circle,
.node.hot circle {
  stroke: var(--mol);
  fill: var(--cream-2)
}

.node text {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 800;
  fill: var(--ink-2);
  text-anchor: middle;
  transition: fill .3s
}

.node:hover text,
.node.hot text {
  fill: var(--amber)
}

.node .ico {
  font-size: 20px;
  text-anchor: middle
}

.spark {
  fill: var(--mol);
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 195, 61, 1))
}

.pot {
  fill: var(--paper);
  stroke: var(--mol);
  stroke-width: 2.5;
  filter: drop-shadow(0 12px 28px rgba(255, 195, 61, .45))
}

.pot-cap {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  fill: var(--amber);
  text-anchor: middle;
  letter-spacing: .12em
}

.pot-val {
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 900;
  fill: var(--ink);
  text-anchor: middle;
  letter-spacing: -.045em
}

.pot-sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  fill: var(--ink-3);
  text-anchor: middle
}

section {
  padding: 104px 0;
  position: relative
}

.tinted {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.sec-head {
  max-width: 720px;
  margin-bottom: 52px
}

.sec-head.mid {
  margin-left: auto;
  margin-right: auto;
  text-align: center
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px
}

h2 {
  font-size: clamp(27px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -.04em
}

h2 mark {
  background: linear-gradient(180deg, transparent 56%, var(--mol) 56%);
  color: var(--ink);
  padding: 0 3px
}

.lead {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-2);
  font-weight: 500
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.pillar {
  position: relative;
  padding: 32px 28px;
  border-radius: 22px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  box-shadow: var(--sh-s);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s, border-color .4s
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-l);
  border-color: var(--mol-soft)
}

.pillar .badge {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--cream-2);
  border: 1.5px solid var(--mol-soft);
  margin-bottom: 18px
}

.pillar.soil .badge {
  background: #F5EBE0;
  border-color: var(--soil-soft)
}

.pillar.leaf .badge {
  background: #E9F6EE;
  border-color: #B7E3C6
}

.p-t {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.45;
  margin-bottom: 12px
}

.p-t span {
  color: var(--amber)
}

.pillar.soil .p-t span {
  color: var(--soil)
}

.pillar.leaf .p-t span {
  color: var(--leaf)
}

.p-b {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-2);
  font-weight: 500
}

.p-tag {
  display: inline-block;
  margin-top: 20px;
  padding: 5px 11px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  background: var(--cream-2);
  color: var(--amber);
  border: 1px solid var(--mol-soft)
}

.pillar.soil .p-tag {
  background: #F5EBE0;
  color: var(--soil);
  border-color: var(--soil-soft)
}

.pillar.leaf .p-tag {
  background: #E9F6EE;
  color: var(--leaf);
  border-color: #B7E3C6
}

.ways {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px
}

.way {
  padding: 28px 18px 24px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  background: var(--paper);
  border: 1.5px solid var(--line);
  box-shadow: var(--sh-s);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s, border-color .3s
}

.way:hover {
  transform: translateY(-8px);
  border-color: var(--mol);
  box-shadow: 0 20px 40px -16px rgba(255, 195, 61, .7)
}

.way .emo {
  font-size: 34px;
  display: block;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1)
}

.way:hover .emo {
  transform: scale(1.2) rotate(-8deg)
}

.way .verb {
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-top: 14px
}

.way .desc {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 7px;
  line-height: 1.6;
  font-weight: 500
}

.way .pt {
  margin-top: 16px;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--cream-2);
  color: var(--amber);
  transition: background .3s, color .3s
}

.way:hover .pt {
  background: var(--mol);
  color: var(--mole)
}

.ways-foot {
  margin-top: 26px;
  padding: 22px 26px;
  border-radius: 18px;
  background: var(--paper);
  border: 2px dashed var(--mol-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.7
}

.ways-foot b {
  color: var(--ink);
  font-weight: 900
}

.contract {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--sh-m)
}

.c-left {
  padding: 46px 42px;
  border-right: 1.5px solid var(--line)
}

.c-left h3 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.5
}

.c-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.c-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-2);
  font-weight: 500
}

.c-item .tick {
  flex: 0 0 21px;
  height: 21px;
  border-radius: 7px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  background: var(--mol);
  color: var(--mole);
  font-size: 11px;
  font-weight: 900
}

.c-item b {
  color: var(--ink);
  font-weight: 800
}

.c-right {
  padding: 26px;
  background: var(--mole)
}

.term {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
  color: #C9C3BC
}

.term-bar {
  display: flex;
  gap: 6px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.term-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%
}

.term-bar i:nth-child(1) {
  background: #E8734A
}

.term-bar i:nth-child(2) {
  background: #FFC33D
}

.term-bar i:nth-child(3) {
  background: #3BA55C
}

.term .k {
  color: #8FB8E8
}

.term .s {
  color: #FFC33D
}

.term .n {
  color: #F0A868
}

.term .fn {
  color: #7DD8A0
}

.term .c {
  color: #7A736C
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--mol);
  vertical-align: -2px;
  animation: blink 1.05s step-end infinite
}

@keyframes blink {
  50% {
    opacity: 0
  }
}

.impact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.imp {
  padding: 38px 34px;
  border-radius: 24px;
  border: 1.5px solid var(--line);
  background: linear-gradient(165deg, #FBF2E9, var(--paper) 62%);
  box-shadow: var(--sh-s)
}

.imp.g {
  background: linear-gradient(165deg, #EDF8F1, var(--paper) 62%)
}

.imp .emo {
  font-size: 40px;
  display: block;
  margin-bottom: 18px
}

.imp h3 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.5
}

.imp p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-2);
  font-weight: 500
}

.bar {
  margin-top: 28px
}

.bar-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 9px
}

.bar-top b {
  color: var(--soil)
}

.imp.g .bar-top b {
  color: var(--leaf)
}

.track {
  height: 9px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden
}

.fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--soil), var(--mol));
  transition: width 1.8s cubic-bezier(.16, 1, .3, 1)
}

.fill.on {
  width: 73%
}

.imp.g .fill {
  background: linear-gradient(90deg, var(--leaf), #8BD9A8)
}

.imp.g .fill.on {
  width: 61%
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.stat {
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  background: var(--paper);
  border: 1.5px solid var(--line);
  box-shadow: var(--sh-s);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-m)
}

.stat .v {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink)
}

.stat .v em {
  font-style: normal;
  color: var(--amber)
}

.stat .l {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 700;
  line-height: 1.5
}

.stat .sub {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3)
}

.cta {
  text-align: center;
  padding: 72px 34px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(700px 400px at 50% 0%, var(--cream-2), var(--cream) 72%);
  border: 1.5px solid var(--mol-soft)
}

.cta .mole-sm {
  width: 100px;
  height: 100px;
  border-radius: 28px;
  box-shadow: var(--sh-m);
  margin-bottom: 22px;
  animation: bob 3.6s ease-in-out infinite
}

.cta h2 {
  max-width: 640px;
  margin: 20px auto 0
}

.cta p {
  margin: 20px auto 0;
  max-width: 470px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-2);
  font-weight: 500
}

.stores {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 28px;
  border-radius: 16px;
  text-decoration: none;
  background: var(--mole);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -.01em;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s
}

.store:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -14px rgba(46, 42, 40, .7)
}

.store.y {
  background: var(--mol);
  color: var(--mole)
}

.store.y:hover {
  box-shadow: 0 18px 36px -14px rgba(255, 195, 61, 1)
}

.store svg {
  width: 19px;
  height: 19px
}

.fine {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3)
}

footer {
  border-top: 1.5px solid var(--line);
  padding: 44px 0;
  background: var(--cream)
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap
}

.foot-l {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  line-height: 1.8
}

.foot-links {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 700
}

.foot-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s
}

.foot-links a:hover {
  color: var(--amber)
}

a:focus-visible,
button:focus-visible,
.way:focus-visible,
.pillar:focus-visible {
  outline: 2.5px solid var(--amber);
  outline-offset: 3px;
  border-radius: 10px
}

@media(max-width:960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px
  }

  .stage {
    max-width: 390px;
    order: -1
  }

  .pillars,
  .impact {
    grid-template-columns: 1fr
  }

  .ways {
    grid-template-columns: repeat(2, 1fr)
  }

  .stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .contract {
    grid-template-columns: 1fr
  }

  .c-left {
    border-right: 0;
    border-bottom: 1.5px solid var(--line);
    padding: 36px 28px
  }

  .nav-links {
    display: none
  }

  header {
    padding: 120px 0 70px
  }

  section {
    padding: 76px 0
  }
}

@media(max-width:640px) {
  h1 {
    white-space: normal;
    font-size: clamp(29px, 7.6vw, 40px)
  }
}

@media(max-width:520px) {

  .ways,
  .stats {
    grid-template-columns: 1fr
  }

  .wrap {
    padding: 0 20px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important
  }

  .rv {
    opacity: 1;
    transform: none
  }

  h1 .hl::after {
    transform: scaleX(1)
  }

  .fill {
    width: 73% !important
  }

  .imp.g .fill {
    width: 61% !important
  }
}

/* ═══════ 초대 / 공유 ═══════ */
.invite {
  margin-top: 34px;
  padding: 26px;
  border-radius: 22px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  box-shadow: var(--sh-m);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: left
}

.invite-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 6px
}

.invite-h .pill {
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--cream-2);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700
}

.invite-p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 16px
}

.invite-row {
  display: flex;
  gap: 8px
}

.invite-in {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  outline: 0
}

.invite-in:focus {
  border-color: var(--mol)
}

.btn-kakao {
  background: #FEE500;
  color: #191600
}

.btn-kakao:hover {
  background: #FFE94D;
  box-shadow: 0 12px 26px -10px rgba(254, 229, 0, 1)
}

.invite-stat {
  margin-top: 14px;
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3)
}

.invite-stat b {
  color: var(--amber)
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 99;
  padding: 13px 22px;
  border-radius: 100px;
  background: var(--mole);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--sh-l);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0)
}

/* 초대받고 들어온 사람에게 뜨는 배너 */
.ref-banner {
  position: relative;
  z-index: 3;
  background: var(--mol);
  color: var(--mole);
  text-align: center;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em
}

.ref-banner b {
  background: rgba(255, 255, 255, .55);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12.5px
}

body.has-ref nav {
  top: 41px
}

body.has-ref header {
  padding-top: 190px
}

@media(max-width:960px) {
  body.has-ref header {
    padding-top: 160px
  }
}

/* 준비중 페이지 */
.soon {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--cream), var(--paper))
}

.soon img {
  width: 120px;
  height: 120px;
  border-radius: 32px;
  box-shadow: var(--sh-m);
  animation: bob 3.6s ease-in-out infinite
}

.soon h1 {
  white-space: normal;
  font-size: clamp(26px, 5vw, 38px);
  margin: 26px 0 14px
}

.soon p {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.75;
  font-weight: 500;
  max-width: 400px;
  margin: 0 auto
}

.soon .plat {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3)
}

/* 준비중 페이지 */
.app_link {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--cream), var(--paper))
}

.app_link img {
  width: 120px;
  height: 120px;
  border-radius: 32px;
  box-shadow: var(--sh-m);
  animation: bob 3.6s ease-in-out infinite
}

.app_link h1 {
  white-space: normal;
  font-size: clamp(26px, 5vw, 38px);
  margin: 26px 0 14px
}

.app_link p {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.75;
  font-weight: 500;
  max-width: 400px;
  margin: 0 auto
}

.app_link .plat {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3)
}

/* 앵커 이동 시 고정 네비에 제목이 가리지 않도록 */
section[id] {
  scroll-margin-top: 90px
}

body.has-ref section[id] {
  scroll-margin-top: 130px
}

/* ═══════════════════════════════════
   보상 부스터
   ═══════════════════════════════════ */
.boost {
  display: grid;
  grid-template-columns: 1fr 260px;
  grid-template-areas: 'gauge mult' 'cards cards';
  gap: 30px 40px;
  padding: 40px;
  border-radius: 28px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  box-shadow: var(--sh-m);
}

/* ── 게이지 ── */
.boost-gauge {
  grid-area: gauge;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.gauge-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px
}

.gauge-l {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink-2)
}

.gauge-mol {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--ink);
  line-height: 1;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}

.gauge-mol.bump {
  transform: scale(1.08)
}

.gauge-wrap {
  position: relative;
  height: 26px;
  display: flex;
  align-items: center
}

.gauge-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--soil) 0%, var(--mol) 55%, #FFDC7A 100%);
  transition: width .28s cubic-bezier(.16, 1, .3, 1);
}

.gauge-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: translateX(-100%);
  opacity: 0;
}

.gauge-glow.run {
  animation: sweep .7s ease-out
}

@keyframes sweep {
  0% {
    transform: translateX(-60px);
    opacity: 0
  }

  30% {
    opacity: 1
  }

  100% {
    transform: translateX(var(--sweep, 300px));
    opacity: 0
  }
}

/* 실제 input 은 투명하게 트랙 위에 올림 */
.gauge-input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 26px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: 0;
  cursor: grab;
  margin: 0;
}

.gauge-input:active {
  cursor: grabbing
}

.gauge-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--mol);
  cursor: grab;
  box-shadow: 0 5px 18px -3px rgba(255, 195, 61, 1);
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1);
}

.gauge-input::-webkit-slider-thumb:active {
  transform: scale(1.2)
}

.gauge-input::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--mol);
  cursor: grab;
  box-shadow: 0 5px 18px -3px rgba(255, 195, 61, 1);
}

.gauge-input:focus-visible {
  outline: 2.5px solid var(--amber);
  outline-offset: 5px;
  border-radius: 99px
}

.gauge-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 14px
}

.mk {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: color .3s;
}

.mk i {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-3);
  opacity: .7
}

.mk:first-child {
  align-items: flex-start
}

.mk:last-child {
  align-items: flex-end
}

.mk.on {
  color: var(--amber)
}

.mk.on i {
  color: var(--amber);
  opacity: 1
}

/* ── 배율 링 ── */
.boost-mult {
  grid-area: mult;
  display: grid;
  place-items: center
}

.mult-ring {
  position: relative;
  width: 200px;
  height: 200px
}

.mult-ring svg {
  width: 100%;
  height: 100%
}

.mr-bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 13
}

.mr-fg {
  fill: none;
  stroke: var(--mol);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-dasharray: 540;
  stroke-dashoffset: 540;
  transition: stroke-dashoffset .34s cubic-bezier(.16, 1, .3, 1), stroke .3s;
  filter: drop-shadow(0 0 10px rgba(255, 195, 61, .7));
}

.mult-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  pointer-events: none;
}

.mult-x {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--ink);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), color .3s;
}

.mult-x.bump {
  transform: scale(1.14)
}

.mult-x.max {
  color: var(--amber)
}

.mult-c {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-3);
  letter-spacing: -.01em
}

/* 최대 도달 시 터지는 효과 */
.mult-burst {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.spark2 {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mol);
  opacity: 0;
}

.spark2.go {
  animation: burst .75s cubic-bezier(.16, 1, .3, 1) forwards
}

@keyframes burst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(.4)
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.2)
  }
}

/* ── 보상 카드 ── */
.boost-cards {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding-top: 30px;
  border-top: 1.5px dashed var(--line);
}

.bc {
  padding: 20px 14px;
  border-radius: 18px;
  text-align: center;
  background: var(--cream);
  border: 1.5px solid var(--line);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), border-color .3s, background .3s;
}

.bc.pop {
  transform: translateY(-6px);
  border-color: var(--mol);
  background: var(--cream-2)
}

.bc-e {
  font-size: 28px;
  display: block;
  line-height: 1
}

.bc-n {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
  letter-spacing: -.02em
}

.bc-v {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.bc-v b {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.04em;
  margin-right: 2px;
  transition: color .3s;
}

.bc.pop .bc-v b {
  color: var(--amber)
}

/* ── 선순환 ── */
.loop {
  margin-top: 22px;
  padding: 26px 30px;
  border-radius: 22px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 14px 10px;
  border-radius: 16px;
  transition: background .3s, transform .3s;
}

.lp-e {
  font-size: 26px;
  line-height: 1
}

.lp b {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--ink)
}

.lp span:last-child {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
  font-weight: 500
}

.lp.hot {
  background: var(--cream-2)
}

.lp.hot b {
  color: var(--amber)
}

.lp-a {
  flex: 0 0 auto;
  font-size: 18px;
  color: var(--soil-soft);
  font-weight: 900;
  animation: nudge 1.9s ease-in-out infinite;
}

.lp-a:nth-of-type(2) {
  animation-delay: .25s
}

.lp-a:nth-of-type(3) {
  animation-delay: .5s
}

@keyframes nudge {

  0%,
  100% {
    transform: translateX(0);
    opacity: .55
  }

  50% {
    transform: translateX(4px);
    opacity: 1
  }
}

@media(max-width:960px) {
  .boost {
    grid-template-columns: 1fr;
    grid-template-areas: 'mult' 'gauge' 'cards';
    gap: 26px;
    padding: 30px 24px
  }

  .boost-cards {
    grid-template-columns: repeat(3, 1fr);
    padding-top: 24px
  }

  .loop {
    flex-direction: column;
    gap: 4px;
    padding: 22px
  }

  .lp {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    padding: 12px 14px
  }

  .lp b {
    flex: 0 0 68px
  }

  .lp-a {
    transform: rotate(90deg);
    animation: none;
    opacity: .5
  }
}

@media(max-width:520px) {
  .boost-cards {
    grid-template-columns: repeat(2, 1fr)
  }

  .gauge-mol {
    font-size: 30px
  }

  .mult-ring {
    width: 170px;
    height: 170px
  }

  .mult-x {
    font-size: 38px
  }
}

@media(prefers-reduced-motion:reduce) {
  .lp-a {
    animation: none
  }

  .spark2.go {
    animation: none;
    opacity: 0
  }

  .gauge-glow.run {
    animation: none
  }
}