/* ===== 모아바웍스 웹사이트 · 공식 팔레트 12종 기반 ===== */
:root {
  /* 브랜드 팔레트 (Figma Variables 확정값) */
  --violet:      #843DFF; /* 키컬러 */
  --violet-700:  #5518BE;
  --violet-300:  #DCC8FF;
  --violet-100:  #F0E7FF;
  --butter:      #FFDB81;
  --soft-yellow: #FFF2D0;
  --green-300:   #D4E09B;
  --green-100:   #CBDFBD;
  --dark-green:  #41725E;
  --gray-700:    #4F4F4F;
  --gray-400:    #828282;
  --gray-300:    #BDBDBD;

  --ink: #2A2233;
  --bg: #ffffff;
  --bg-soft: #FBF9FF;
  --line: #EFEAF6;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(84, 24, 190, .28);
  --shadow-sm: 0 8px 24px -12px rgba(84, 24, 190, .25);
  --maxw: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", system-ui, "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
h1, h2, h3 { line-height: 1.22; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

/* 키보드 포커스 표시 */
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 700; font-family: inherit; cursor: pointer;
  border: none; border-radius: 999px;
  background: var(--violet); color: #fff;
  padding: 12px 22px; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 10px 22px -10px rgba(132, 61, 255, .7);
}
.btn:hover { transform: translateY(-2px); background: var(--violet-700); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-full { width: 100%; }
.btn-ghost {
  background: #fff; color: var(--violet-700);
  box-shadow: inset 0 0 0 1.5px var(--violet-300);
}
.btn-ghost:hover { background: var(--violet-100); }

/* ===== 내비게이션 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; }
.brand-mark { font-size: 22px; }
.brand-name { letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--gray-700); }
.nav-links a:not(.btn):hover { color: var(--violet-700); }
.lang-switch {
  font-weight: 800; font-size: 13px; letter-spacing: .03em;
  padding: 6px 11px; border-radius: 999px; border: 1.5px solid var(--line);
}
.lang-switch:hover { border-color: var(--violet-300); background: var(--violet-100); }

/* ===== 히어로 ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% -8%, var(--violet-100), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, var(--soft-yellow), transparent 55%);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { font-weight: 700; color: var(--violet-700); font-size: 14px; letter-spacing: .01em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 800; }
.hero .hl {
  background: linear-gradient(180deg, transparent 62%, var(--butter) 62%);
  padding: 0 4px;
}
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--gray-700); margin-top: 22px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--gray-400); }
.hero-note strong { color: var(--violet-700); }

/* 마스코트 */
.hero-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.blob {
  position: absolute; inset: 6% 8%;
  background: radial-gradient(circle at 35% 30%, var(--violet-300), var(--violet-100));
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(2px);
  animation: float 7s ease-in-out infinite;
}
.tablet { position: relative; width: min(72%, 288px); animation: float 5.5s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }
.chip {
  position: absolute; background: #fff; color: var(--violet-700);
  font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.chip-1 { top: 8%; left: -2%; animation: float 6s ease-in-out infinite; }
.chip-2 { bottom: 16%; right: -4%; animation: float 6.6s ease-in-out .4s infinite; }
.chip-3 { bottom: 2%; left: 12%; animation: float 6.2s ease-in-out .8s infinite; }

/* ===== 공통 섹션 ===== */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-soft { background: var(--bg-soft); }
.kicker { font-weight: 800; color: var(--violet); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.kicker.light { color: var(--butter); }
.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; max-width: 18em; }
.section-title.light { color: #fff; }
.lead-2 { font-size: 17px; color: var(--gray-700); margin-top: 18px; max-width: 34em; }
.lead-2.light { color: rgba(255,255,255,.9); }

/* 3-카드 */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-ico {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px;
  background: var(--violet-100); border-radius: 14px; margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--gray-700); font-size: 15px; }

/* 우리가 만드는 것 */
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.step-n {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--violet); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 16px;
}
.steps strong { font-size: 16px; }
.steps li div { font-size: 15px; color: var(--gray-700); }

/* 4-카드 그리드 */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.cards-4 .card { padding: 26px 22px; }
.cards-4 .card h3 { font-size: 18px; }

/* 3. 티치패치 소개 (센터) */
.intro-center { text-align: center; }
.intro-center .section-title { margin: 0 auto; }
.intro-center .lead-2 { margin: 20px auto 0; }
.slogan {
  font-size: clamp(19px, 2.6vw, 24px); font-weight: 800; color: var(--violet-700);
  line-height: 1.5; margin: 26px auto 0; max-width: 24em;
}

/* 4. 이용 흐름 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.flow-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.flow-num {
  display: inline-block; font-size: 30px; font-weight: 800; color: var(--violet);
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.flow-step h3 { font-size: 18px; margin-bottom: 8px; }
.flow-step p { color: var(--gray-700); font-size: 15px; }

/* 5. 이미지 활용 비주얼 */
.image-visual {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 26px; box-shadow: var(--shadow);
}
.iv-search {
  display: flex; align-items: center; gap: 10px; font-size: 18px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 18px; margin-bottom: 18px;
}
.iv-search span { flex: 1; height: 10px; border-radius: 6px; background: var(--violet-100); }
.iv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.iv-grid span { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-size: 30px; }
.iv-cam { background: var(--violet); }

/* 7. 분석의 전문성 (밴드) */
.expert { background: linear-gradient(135deg, var(--violet-700), var(--violet)); color: #fff; }
.expert-inner { max-width: 720px; }
.expert-badge {
  display: inline-block; background: rgba(255,255,255,.16); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: .04em;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.3);
}

/* 9. 모아바웍스의 역할 (선언 밴드) */
.statement { text-align: center; }
.statement-title {
  font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; line-height: 1.28;
  max-width: 20em; margin: 0 auto;
}
.statement .lead-2 { margin: 18px auto 0; }

/* ===== 대상별 가치 제안 ===== */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.who-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.who-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.who-role {
  display: inline-block; font-weight: 800; color: var(--violet-700);
  background: var(--violet-100); padding: 6px 14px; border-radius: 999px;
  font-size: 14px; margin-bottom: 14px;
}
.who-card p { color: var(--gray-700); font-size: 15px; }

/* ===== 티치패치 ===== */
.product { background: #fff; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.feature-ico { font-size: 30px; display: block; margin-bottom: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--gray-700); font-size: 15px; }
.trust-note {
  text-align: center; margin-top: 30px; color: var(--gray-400);
  font-size: 14px; font-weight: 600;
}
.product-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, var(--violet-100), #fff 70%);
  border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
}
.badge {
  display: inline-block; background: var(--violet); color: #fff;
  font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.product-name { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
.product-en { color: var(--gray-400); font-weight: 700; font-size: .5em; letter-spacing: .02em; }
.product-lead { font-size: 17px; color: var(--gray-700); margin-top: 16px; max-width: 26em; }
.product-tease { font-size: 17px; margin: 20px 0 28px; }
.product-tease strong { color: var(--violet-700); }

/* 목업 */
.product-visual { position: relative; display: grid; place-items: center; }
.mock {
  width: min(100%, 320px); background: #fff; border-radius: 20px;
  box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 14px 16px; background: var(--violet-100); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--violet-300); }
.mock-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; }
.mock-tile { aspect-ratio: 1; border-radius: 12px; background: var(--soft-yellow); }
.mock-tile:nth-child(2n) { background: var(--green-100); }
.mock-tile.alt { background: var(--violet-300); }
.mock-cta { height: 40px; margin: 0 18px 20px; border-radius: 999px; background: var(--violet); }
.soon {
  position: absolute; top: -12px; right: 8px; transform: rotate(6deg);
  background: var(--butter); color: var(--violet-700); font-weight: 800; font-size: 13px;
  padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}

/* ===== 사전신청 ===== */
.signup {
  background: linear-gradient(135deg, var(--violet-700), var(--violet));
  color: #fff;
}
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.signup-form {
  background: #fff; color: var(--ink); border-radius: 24px;
  padding: clamp(26px, 4vw, 38px); box-shadow: var(--shadow); display: grid; gap: 16px;
}
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select {
  font-family: inherit; font-size: 15px; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--violet-100);
}
.collect-note {
  font-size: 13px; color: var(--gray-400); line-height: 1.6;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
}
.collect-note a { color: var(--violet-700); font-weight: 700; text-decoration: underline; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--gray-700); cursor: pointer; }
.agree input { margin-top: 3px; accent-color: var(--violet); width: 16px; height: 16px; }
.form-msg { font-size: 14px; font-weight: 600; min-height: 1.2em; margin-top: 2px; }
.form-msg.ok { color: var(--dark-green); }
.form-msg.err { color: #cf3a3a; }

/* ===== 공지 ===== */
.news-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.news-list li {
  display: flex; gap: 22px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.news-date {
  flex: none; font-weight: 800; color: var(--violet); font-size: 14px;
  min-width: 74px; padding-top: 2px;
}
.news-list strong { font-size: 17px; }
.news-list p { color: var(--gray-700); font-size: 15px; margin-top: 4px; }

/* ===== 푸터 ===== */
.footer { background: #1E1726; color: rgba(255,255,255,.72); padding: 56px 0 40px; }
.footer-inner { display: grid; gap: 18px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 19px; }
.footer-info p { font-size: 14px; margin: 2px 0; }
.footer-info a { color: var(--violet-300); }
.footer-links { font-size: 14px; margin-top: 6px; }
.footer-links a { color: var(--violet-300); font-weight: 600; }
.footer-links a:hover { color: #fff; }
.copyright { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 12px; }

/* ===== 반응형 ===== */
@media (max-width: 900px) {
  .hero-grid, .what-grid, .signup-grid, .product-card { grid-template-columns: 1fr; }
  /* 모바일: 카피·CTA를 먼저 보여주고 일러스트는 아래로 */
  .hero-art { min-height: 240px; margin-top: 8px; }
  .cards-3, .features { grid-template-columns: 1fr; }
  .who-grid, .cards-4, .flow { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn):not(.lang-switch) { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .who-grid, .cards-4, .flow { grid-template-columns: 1fr; }
  .news-list li { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
