/* ============================================================
   유니폼스토리 — 랜딩 v2 (cinematic dark hero + glow)
   화려함: 오로라 글로우·그라디언트·글래스 / 뼈대는 심플 유지
   ============================================================ */
:root {
  --ink: #101624;
  --ink-2: #4a5166;
  --ink-3: #7b8296;
  --primary: #2740b0;
  --primary-deep: #1d2f86;
  --primary-soft: #eef1fc;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --stitch: #e8930c;
  --stitch-bright: #ffb020;
  --navy: #0a1226;
  --navy-2: #101c3d;
  --paper: #fbfbfd;
  --paper-2: #f3f4f8;
  --card: #ffffff;
  --line: #e4e7ee;
  --green: #15803d;
  --teal: #0f766e;

  --grad-brand: linear-gradient(120deg, #4a5fd5 0%, #7c5cff 55%, #22d3ee 130%);
  --grad-cta: linear-gradient(120deg, #4053e8, #7c5cff);

  --font-display: "IBM Plex Sans KR", "Pretendard Variable", sans-serif;
  --font-body: "Pretendard Variable", "IBM Plex Sans KR", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 22, 36, 0.05), 0 10px 30px rgba(16, 22, 36, 0.07);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* ---------- 타이포 ---------- */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--stitch) 0 6px, transparent 6px 10px);
  background-size: 10px 2px;
}

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

.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 700; line-height: 1.28; margin: 12px 0 14px; }
.section-head p { color: var(--ink-2); font-size: 17px; }

.stitch-hr {
  height: 2px;
  border: 0;
  background-image: linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  background-size: 14px 2px;
  margin: 0;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.btn:focus-visible, a:focus-visible { outline: 3px solid rgba(124, 92, 255, 0.5); outline-offset: 2px; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 8px 24px rgba(76, 84, 232, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 32px rgba(76, 84, 232, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--card); }

.btn-glass {
  background: rgba(255, 255, 255, 0.07);
  color: #eaf0ff;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.32); }

.btn-inverse { background: #fff; color: var(--navy); }
.btn-inverse:hover { background: #e9edf5; }

/* ---------- 네비 (다크 글래스) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 18, 38, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #eaf0ff;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.brand-mark { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; color: #aab8d8; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: 10px; }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- 히어로 (시네마틱 다크) ---------- */
.hero {
  position: relative;
  padding: 104px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 82% -10%, rgba(76, 84, 232, 0.34) 0, transparent 60%),
    radial-gradient(760px 480px at 8% 108%, rgba(124, 92, 255, 0.2) 0, transparent 55%),
    radial-gradient(560px 360px at 55% 118%, rgba(232, 147, 12, 0.12) 0, transparent 60%),
    linear-gradient(180deg, #0a1226 0%, #0d1730 100%);
  color: #eaf0ff;
}
/* 오로라 블롭 */
.hero .aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; }
.hero .aurora.a1 { width: 480px; height: 480px; top: -160px; right: 4%; background: radial-gradient(circle, #4a5fd5 0, transparent 70%); animation: drift1 16s ease-in-out infinite alternate; }
.hero .aurora.a2 { width: 380px; height: 380px; bottom: -180px; left: -6%; background: radial-gradient(circle, #7c5cff 0, transparent 70%); animation: drift2 20s ease-in-out infinite alternate; }
.hero .aurora.a3 { width: 260px; height: 260px; bottom: -100px; left: 46%; background: radial-gradient(circle, rgba(34, 211, 238, 0.75) 0, transparent 70%); animation: drift1 24s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate(0, 0); } to { transform: translate(-46px, 34px); } }
@keyframes drift2 { from { transform: translate(0, 0); } to { transform: translate(52px, -30px); } }

/* 미세 그리드 텍스처 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 480px at 60% 30%, #000 0, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 480px at 60% 30%, #000 0, transparent 78%);
  pointer-events: none;
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero .eyebrow { color: #9fb2ff; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 700; line-height: 1.18; margin: 18px 0 22px; color: #fff; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(115deg, #8ea2ff 0%, #b7a4ff 45%, #63e0f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 18px; color: #aab8d8; max-width: 480px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: #6d7ea6; }

/* 케어라벨 태그 카드 — 다크 위에 뜬 빛나는 라벨 */
.tag-card-scene { position: relative; display: flex; justify-content: center; }
.tag-card {
  position: relative;
  width: min(400px, 100%);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.25),
    0 24px 70px rgba(5, 10, 26, 0.65),
    0 0 90px rgba(76, 84, 232, 0.4);
  padding: 10px;
  color: var(--ink);
  transform: rotate(1.2deg);
}
.tag-card::before {
  /* 상단 그라디언트 헤어라인 */
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--grad-brand);
}
.tag-card-inner { border: 2px dashed #cdd3e0; border-radius: 13px; padding: 24px; }
.tag-care-row { display: flex; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.tag-care-row svg { width: 26px; height: 26px; }
.tag-epc { margin: 16px 0 4px; }
.tag-epc .label, .tag-meta .label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.tag-epc .value { font-family: var(--font-mono); font-size: 15.5px; font-weight: 500; margin-top: 2px; }
.tag-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 14px 0 18px; }
.tag-meta .value { font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.tag-cycle-bar { height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; margin-top: 6px; }
.tag-cycle-bar span { display: block; height: 100%; width: 18.5%; background: linear-gradient(90deg, #0d9488, #22d3ee); border-radius: 3px; }
.tag-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(15, 118, 110, 0.09);
  border-radius: 99px;
  padding: 5px 12px;
}
.tag-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(13, 148, 136, 0.8); }
.tag-feed { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.tag-feed-row { display: flex; gap: 10px; font-size: 12.5px; color: var(--ink-2); align-items: baseline; }
.tag-feed-row time { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); flex-shrink: 0; }
.tag-feed-row.fresh { color: var(--ink); font-weight: 500; }
.tag-feed-row.fresh time { color: var(--violet); }

/* ---------- 라이브 스트림 ---------- */
.stream {
  background: #070d1e;
  color: #cbd6ea;
  overflow: hidden;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #4a5fd5, #7c5cff, #e8930c) 1;
}
.stream-track { display: flex; gap: 56px; width: max-content; animation: stream-scroll 46s linear infinite; }
.stream-item { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.stream-item .mono { font-family: var(--font-mono); font-size: 12px; color: #63719a; }
.stream-item .ev { color: var(--stitch-bright); font-weight: 600; text-shadow: 0 0 14px rgba(255, 176, 32, 0.5); }
@keyframes stream-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 섹션 공통 ---------- */
.section { padding: 104px 0; }
.section.alt { background: var(--paper-2); }

/* 스크롤 리빌 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .stream-track, .hero .aurora { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .role-card, .feature { transition: none; }
}

/* ---------- 역할 ---------- */
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.role-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.role-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.role-card:hover { transform: translateY(-4px); border-color: #c9cfe4; box-shadow: 0 18px 44px rgba(30, 41, 90, 0.13); }
.role-card:hover::before { opacity: 1; }
.role-key {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 7px;
  padding: 4px 9px;
  align-self: flex-start;
}
.role-card.hero-role .role-key { color: #fff; background: var(--grad-cta); box-shadow: 0 4px 14px rgba(76, 84, 232, 0.35); }
.role-card.hero-role::before { opacity: 1; }
.role-card h3 { font-size: 17.5px; font-weight: 700; }
.role-card p { font-size: 14px; color: var(--ink-2); }
.role-card .scope { margin-top: auto; padding-top: 12px; font-size: 12.5px; color: var(--ink-3); border-top: 1px dashed var(--line); }

/* ---------- 순환 사이클 ---------- */
.cycle { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; }
.cycle-step { position: relative; text-align: center; padding: 0 8px; }
.cycle-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 17px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(30, 41, 90, 0.07);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, color 0.25s ease;
}
.cycle-step:hover .cycle-icon { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 26px rgba(76, 84, 232, 0.25); color: var(--violet); }
.cycle-step.factory .cycle-icon { color: #0e7490; }
.cycle-step.done .cycle-icon { color: var(--green); }
.cycle-step::before {
  content: "";
  position: absolute;
  top: 30px;
  left: calc(-50% + 30px);
  width: calc(100% - 60px);
  height: 2px;
  background-image: linear-gradient(90deg, #c2c9da 0 6px, transparent 6px 11px);
  background-size: 11px 2px;
}
.cycle-step:first-child::before { display: none; }
.cycle-step h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.cycle-step p { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.cycle-scan {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  background: var(--paper-2);
  border-radius: 5px;
  padding: 2px 7px;
}

/* ---------- 지표 (다크 시네마 밴드) ---------- */
.metrics-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 420px at 12% -20%, rgba(76, 84, 232, 0.3) 0, transparent 60%),
    radial-gradient(700px 420px at 92% 120%, rgba(124, 92, 255, 0.22) 0, transparent 58%),
    linear-gradient(180deg, #0a1226, #0d1730);
  color: #fff;
}
.metrics-band .eyebrow { color: #9fb2ff; }
.metrics-band .section-head h2 { color: #fff; }
.metrics-band .section-head p { color: #aab8d8; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 30px 24px;
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.metric:hover { border-color: rgba(124, 92, 255, 0.5); background: rgba(255, 255, 255, 0.07); transform: translateY(-3px); }
.metric .num { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #fff; }
.metric .num em {
  font-style: normal;
  background: linear-gradient(115deg, #8ea2ff, #b7a4ff 55%, #63e0f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric .cap { font-size: 14px; color: #aab8d8; margin-top: 8px; }

/* ---------- 기능 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: #c9cfe4; box-shadow: 0 18px 44px rgba(30, 41, 90, 0.12); }
.feature .ficon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--grad-cta);
  box-shadow: 0 8px 20px rgba(76, 84, 232, 0.3);
}
.feature .ficon svg { width: 22px; height: 22px; color: #fff; }
.feature h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% -30%, rgba(124, 92, 255, 0.35) 0, transparent 60%),
    radial-gradient(600px 380px at 6% 130%, rgba(232, 147, 12, 0.16) 0, transparent 55%),
    linear-gradient(180deg, #0a1226, #0c1530);
  color: #fff;
  padding: 96px 0;
}
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 700; line-height: 1.28; }
.cta p { color: #aab8d8; margin-top: 12px; font-size: 16px; max-width: 460px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 푸터 ---------- */
.footer { background: #070d1e; color: #63719a; padding: 36px 0 44px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .brand { color: #fff; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 22px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-sub { max-width: 560px; }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .cycle { grid-template-columns: repeat(4, 1fr); gap: 32px 0; }
  .cycle-step:nth-child(5)::before { display: none; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 68px 0; }
  .roles-grid, .metrics, .features { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .cycle-step:nth-child(odd)::before { display: none; }
  .tag-card { transform: none; }
}
