/* UniMetrics One homepage (계약 home-brand-1117 시안, home-brand-public-1117 공개, home-rename-1119 수정 요청서): 준곰님 11-17이 주신 글의 다섯 절 — 첫 화면, 01 VISION,
   02 FEATURES, 03 MODULES, 04 PARTNERS. one.css의 글꼴, 색, 버튼, 머리, 바닥을 그대로 쓰고 새 절의 모양만 더한다.
   Base: every block in its final place. Motion only in the block at the end (prefers-reduced-motion: no-preference and the view
   timeline), transform and opacity, nothing loops. */

.brand-section { padding-top: var(--section); }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--brand-deep); }
.label::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--brand); }
.center .label { justify-content: center; }
.section-sub { margin-top: 14px; font-size: 22px; line-height: 1.5; font-weight: 600; color: var(--ink); text-wrap: balance; }
.section-lead { max-width: 820px; margin: 20px auto 0; font-size: 19px; line-height: 1.7; color: var(--sub); text-wrap: pretty; }
.center .section-lead { text-align: center; }

/* ---------- first screen ---------- */
.hero-en { margin-top: 18px; font-size: 22px; line-height: 1.4; font-weight: 600; color: var(--brand-deep); letter-spacing: .01em; }
.hero-lead + .hero-lead { margin-top: 14px; font-size: 17px; }
.brand-stage { position: relative; margin-top: 64px; padding: 56px; border-radius: 32px;
  background: radial-gradient(900px 420px at 12% 0%, #dfe9fb, transparent 70%), radial-gradient(700px 380px at 96% 100%, #e3f3ef, transparent 70%), var(--sky); }
.brand-window { max-width: 940px; margin: 0 auto; }
.brand-window img { border-radius: 16px; border: 1px solid var(--frame); background: #fff;
  box-shadow: 0 2px 6px rgba(20, 27, 38, .06), 0 30px 70px rgba(20, 27, 38, .16); }
.brand-card { position: absolute; z-index: 2; right: -24px; bottom: -48px; width: 30%; }

/* ---------- 01 vision: the flow, drawn in HTML ---------- */
.vision-copy { max-width: 860px; margin: 0 auto; }
.vision-text { margin-top: 28px; display: grid; gap: 14px; font-size: 18px; line-height: 1.75; color: var(--sub); }
.flow { --gap: 72px; --stub: 36px; --row: 56px; --rgap: 12px;
  margin-top: 56px; padding: 56px; border-radius: 32px; background: #F6F8FB; border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: var(--gap); }
.flow-col { position: relative; }
.flow-list { display: grid; gap: var(--rgap); }
.flow-col h3 { position: absolute; bottom: calc(100% + 14px); left: 0; font-size: 14px; font-weight: 700; color: var(--sub); letter-spacing: .02em; }
.flow-item { position: relative; display: flex; align-items: center; gap: 12px; height: var(--row); padding: 0 18px; border-radius: 14px;
  background: #fff; border: 1px solid var(--frame); font-size: 17px; font-weight: 600; box-shadow: 0 1px 2px rgba(20, 27, 38, .05); }
.flow-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.flow-out .flow-dot { background: #2E8F7A; }
/* the stubs and the bus on each side of the centre */
.flow-in .flow-item::after, .flow-out .flow-item::before { content: ""; position: absolute; top: 50%; width: var(--stub); height: 2px; background: #C9D4E3; }
.flow-in .flow-item::after { left: 100%; }
.flow-out .flow-item::before { right: 100%; }
.flow-in::after, .flow-out::before { content: ""; position: absolute; top: calc(var(--row) / 2); bottom: calc(var(--row) / 2); width: 2px; background: #C9D4E3; }
.flow-in::after { right: calc(-1 * var(--stub)); }
.flow-out::before { left: calc(-1 * var(--stub)); }
.flow-core { position: relative; width: 240px; padding: 34px 24px; border-radius: 24px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #3a68b8, #2a4f93); box-shadow: 0 18px 44px rgba(42, 79, 147, .32); }
.flow-core::before, .flow-core::after { content: ""; position: absolute; top: 50%; width: var(--stub); height: 2px; background: #C9D4E3; }
.flow-core::before { right: 100%; }
.flow-core::after { left: 100%; }
.flow-core small { display: block; font-size: 14px; font-weight: 600; color: #D8E4F8; }
.flow-core strong { display: block; margin-top: 6px; font-size: 24px; line-height: 1.3; font-weight: 700; }
.flow-core p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: #D8E4F8; }

/* ---------- 02 features ---------- */
.features-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 27, 38, .04); }
.feature-head { display: flex; align-items: center; justify-content: space-between; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--brand-deep); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-no { font-size: 15px; font-weight: 700; color: #9AA8BC; letter-spacing: .04em; }
.feature h3 { margin-top: 22px; font-size: 21px; line-height: 1.4; font-weight: 700; }
.feature p { margin-top: 10px; font-size: 16px; line-height: 1.7; color: var(--sub); }

/* ---------- 03 modules ---------- */
.modules { margin-top: 64px; display: grid; gap: 28px; }
.module { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding: 56px; border-radius: 32px; }
.module-rev .module-text { order: 2; }
.module-m1 { background: var(--sky); }
.module-m2 { background: var(--mint); }
.module-code { font-size: 15px; font-weight: 700; color: var(--brand-deep); letter-spacing: .04em; }
.module-m2 .module-code { color: #1E6E5C; }
.module h3 { margin-top: 10px; font-size: 30px; line-height: 1.35; font-weight: 700; text-wrap: balance; }
.chips { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.chip-must { background: var(--brand); color: #fff; }
.chip-pick { background: #fff; color: var(--ink); border: 1px solid #C5CFDC; }
.chip-soon { background: var(--apricot); color: #7A4A12; border: 1px solid #F1D8BC; }
.module-body { margin-top: 20px; display: grid; gap: 12px; font-size: 17px; line-height: 1.75; color: var(--sub); }
.module-shots { position: relative; }
.module-shots .shot img { box-shadow: 0 2px 6px rgba(20, 27, 38, .06), 0 24px 56px rgba(20, 27, 38, .14); }
.module-float { position: absolute; z-index: 2; width: 58%; right: -20px; bottom: -36px; }
.module-m2 .module-float { right: auto; left: -20px; width: 52%; }
.module-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.module-soon { display: flex; flex-direction: column; padding: 40px; border-radius: 32px; background: #F6F8FB; border: 1px solid var(--line); }
.module-soon h3 { font-size: 26px; }
.soon-track { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.soon-track span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 10px; background: #fff;
  border: 1px dashed #B9C5D6; font-size: 14px; font-weight: 600; color: var(--sub); }

/* ---------- 04 partners ---------- */
.partners-copy { max-width: 820px; margin: 0 auto; }
.partners-text { margin-top: 24px; display: grid; gap: 12px; font-size: 18px; line-height: 1.75; color: var(--sub); text-align: center; }


/* ---------- logo: the name grew an s (UniMetrics One, 준곰님 11-19 요청서 1항), so the picture is 289 wide instead of 268;
   the widths below keep the letters the size one.css gave them (212, 168, 150 times 289/268) ---------- */
.site-logo img { width: 229px; }
@media (max-width: 900px) { .site-logo img { width: 181px; } }
@media (max-width: 520px) { .site-logo img { width: 162px; } }
/* with the wider logo and 「파트너십」 the one-line head no longer fits just above 520; use the menu size one.css gives below 520 */
@media (min-width: 521px) and (max-width: 600px) { .site-nav { gap: 18px; } .site-nav a { font-size: 15px; } }

/* ---------- footer: centred like the partners and closing sections above (준곰님 11-17, 계약 home-foot-1117) ---------- */
.site-foot { text-align: center; }

/* ---------- widths ---------- */
@media (max-width: 1099px) {
  .brand-stage { padding: 40px; }
  .flow { --gap: 48px; --stub: 24px; padding: 48px 36px; }
  .flow-core { width: 200px; }
  .module { padding: 44px; gap: 40px; }
  .module h3 { font-size: 26px; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .brand-stage { margin-top: 48px; padding: 16px; border-radius: 22px; }
  .brand-card { position: relative; right: auto; bottom: auto; width: 72%; margin: -56px -6px 0 auto; }
  /* the flow stands up: in, centre, out one under the other; the side lines become one line down the middle */
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 56px; padding: 56px 20px 28px; border-radius: 22px; }
  .flow-list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .flow-col h3 { position: static; margin-bottom: 12px; }
  .flow-in .flow-item::after, .flow-out .flow-item::before, .flow-in::after, .flow-out::before { display: none; }
  .flow-core { width: auto; justify-self: stretch; }
  .flow-core::before, .flow-core::after { top: auto; left: 50%; right: auto; width: 2px; height: 28px; }
  .flow-core::before { bottom: 100%; }
  .flow-core::after { top: 100%; }
  .module, .module-pair { grid-template-columns: minmax(0, 1fr); }
  .module { padding: 32px 20px 56px; border-radius: 22px; }
  .module-rev .module-text { order: 0; }
  .module-float { right: -6px; bottom: -32px; }
  .module-m2 .module-float { left: -6px; }
  .module-soon { padding: 28px 20px; border-radius: 22px; }
}
@media (max-width: 734px) {
  .section-sub { font-size: 19px; }
  .hero-en { font-size: 18px; }
  .features-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 36px; }
  .feature { padding: 24px 20px; }
  .module h3 { font-size: 23px; }
  .module-soon h3 { font-size: 22px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry 0% cover 50%) {
    .brand-window { animation: brand-rise 1.1s var(--ease) both; }
    .brand-card { animation: brand-card .9s var(--ease) .45s both; }
    @keyframes brand-rise { from { opacity: .4; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
    @keyframes brand-card { from { opacity: 0; transform: translateY(32px) scale(.96); } to { opacity: 1; transform: none; } }
    @keyframes brand-up { from { opacity: .1; transform: translateY(24px); } to { opacity: 1; transform: none; } }
    @keyframes brand-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
    @keyframes brand-right { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
    @keyframes brand-core { from { opacity: .2; transform: scale(.86); } to { opacity: 1; transform: none; } }

    .vision-copy, .section-head, .partners-copy { animation: brand-up var(--ease) both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    /* the flow: the three sources come in from the left, the centre grows, the five uses come in from the right */
    .flow-in .flow-item { animation: brand-left var(--ease) both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
    .flow-core { animation: brand-core var(--ease) both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .flow-out .flow-item { animation: brand-right var(--ease) both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .flow-out .flow-item:nth-child(n+4) { animation-range: entry 16% cover 46%; }
    .feature { animation: brand-up var(--ease) both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .feature:nth-child(3n+2) { animation-range: entry 6% cover 32%; }
    .feature:nth-child(3n) { animation-range: entry 12% cover 36%; }
    .module, .module-soon { animation: brand-up var(--ease) both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    .module-float { animation: brand-up var(--ease) both; animation-timeline: view(); animation-range: entry 15% cover 45%; }
  }
}
