/* 앞부분 섹션 — 히어로 · 왜 지금인가 · 제품.
 * (뒷부분 섹션은 blocks.css 에 있다. 파일 하나가 길어지면 고치기 어려워진다.) */

/* ══ 히어로 ══ */
.hero { position: relative; padding-top: var(--s-9); padding-bottom: var(--s-8); overflow: hidden; }
.hero .wrap.hero__inner { margin-inline: auto; }
.hero__glow {
  position: absolute; inset: -30% 0 auto; height: 780px; pointer-events: none;
  background:
    radial-gradient(58% 48% at 22% 8%, rgba(34,211,238,.22), transparent 62%),
    radial-gradient(46% 42% at 82% 0%, rgba(139,92,246,.14), transparent 60%);
  filter: blur(6px);
}
/* ★한 단으로 가운데. 화면 이미지가 아래에서 폭을 다 쓰게 비워 준다. */
.hero__inner { position: relative; text-align: center; max-width: 900px; }
.hero__title { font-size: clamp(34px, 5.6vw, 66px); letter-spacing: -0.04em; }
.hero__lead { margin-top: var(--s-4); font-size: clamp(16px, 1.9vw, 20px); color: var(--text-muted); }
.hero__ctas { display: flex; gap: var(--s-3); margin-top: var(--s-6); flex-wrap: wrap; justify-content: center; }
.hero__note {
  display: inline-flex; align-items: center; gap: 9px; margin-top: var(--s-5);
  font-size: 13px; color: var(--text-faint);
}
.hero__photo-wrap { margin-top: var(--s-7); position: relative; }
.hero__photo {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 7;
  border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  background: var(--bg-deep); box-shadow: 0 36px 100px rgba(0, 0, 0, .56), 0 0 80px rgba(34, 211, 238, .10);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }

/* ★★ **사진이 화면보다 밝으면 검은 배경 위에 «오려 붙인 것»처럼 뜬다.**
   이 사이트의 배경은 #02060A 에 가깝고 강조색은 청록 하나뿐인데, 실사 사진은
   주광·텅스텐이 섞여 밝고 따뜻하다. 그대로 얹으면 사진만 다른 페이지에서 온
   것처럼 보인다. 채도·밝기를 한 단계 내리고 네 변에 배경색을 먹여 앉힌다.
   ★사진 자체를 다시 만들지 않고 CSS 로만 맞춘다 — 원본은 그대로 둔다. */
.hero__photo img,
.field-photo img { filter: saturate(.84) brightness(.88) contrast(1.04); }

.hero__photo::after,
.field-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 10, .46) 0%, rgba(2, 6, 10, 0) 28%,
                            rgba(2, 6, 10, 0) 48%, rgba(2, 6, 10, .88) 100%),
    linear-gradient(90deg, rgba(2, 6, 10, .34) 0%, rgba(2, 6, 10, 0) 24%,
                           rgba(2, 6, 10, 0) 76%, rgba(2, 6, 10, .34) 100%);
}
.hero__photo figcaption {
  position: absolute; z-index: 1; inset: auto var(--s-5) var(--s-4);
  display: flex; align-items: center; gap: 12px; color: rgba(230, 247, 252, .78); font-size: 12px;
}
.hero__photo-label { color: var(--accent); font: 700 11px/1 var(--font-num); letter-spacing: .12em; }
.hero__map { margin-top: var(--s-8); position: relative; }
.hero__shot { margin-top: var(--s-6); margin-bottom: var(--s-9); position: relative; }

/* ══ 현장 스토리 ══ */
/* ★★ **칸을 사진에 맞춘다. 사진을 칸에 맞춰 자르지 않는다.**
   가로 사진(16:9)을 세로로 긴 칸에 넣고 `cover` 를 걸면 좌우가 잘려 나간다.
   1200px 기준으로 재 보면 687×1260 칸에 1672×941 을 넣는 셈이라 **가로의 69%가
   잘렸다** — 남는 것은 무엇을 찍었는지 알 수 없는 좁은 띠다.
   그래서 가로 사진은 가로 칸(16:9)에, 세로 사진은 세로로 긴 칸에 둔다. */
.field-story {
  display: grid; grid-template-columns: 1.16fr .84fr; grid-template-rows: auto auto;
  gap: var(--s-4); align-items: stretch;
}
.field-photo {
  position: relative; min-height: 260px; margin: 0; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--r-xl); background: var(--bg-deep);
  /* ★화면 스크린샷(.shot)과 같은 청록 번짐을 준다. 사진만 그림자가 다르면
     같은 페이지의 다른 재료처럼 보인다. */
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5), 0 0 60px rgba(34, 211, 238, .06);
}
.field-photo--control { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; min-height: 0; }
.field-story__aside   { grid-column: 1; grid-row: 2; }
/* ★`1 / -1` 을 쓰지 마라. `-1` 은 **명시적** 격자의 마지막 선을 가리키는데,
   행을 `grid-template-rows` 로 선언하지 않으면 가리킬 선이 없어 한 칸만 차지한다.
   `span 2` 는 선언 여부와 무관하게 두 칸을 먹는다. */
.field-photo--mobile  { grid-column: 2; grid-row: 1 / span 2; }
.field-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.field-photo:hover img { transform: scale(1.025); }
.field-photo figcaption {
  position: absolute; z-index: 1; inset: auto var(--s-5) var(--s-4);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
}
.field-photo strong { font-size: 15px; }
.field-photo small { color: var(--text-faint); font-size: 11px; }
.field-story__aside {
  display: flex; flex-direction: column; justify-content: center; padding: var(--s-6);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(145deg, rgba(34, 211, 238, .11), rgba(4, 10, 16, .72));
}
.field-story__kicker { display: flex; align-items: center; gap: 8px; color: var(--accent); font: 700 11px/1 var(--font-num); letter-spacing: .12em; }
.field-story__aside h3 { font-size: clamp(21px, 2.6vw, 30px); margin-top: var(--s-4); }
.field-story__aside > p:not(.field-story__kicker) { color: var(--text-muted); font-size: 14px; margin-top: var(--s-3); }
.field-story__aside .btn { align-self: flex-start; margin-top: var(--s-5); }

/* ── 지표 타일 ── */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden;
}
.metric { background: var(--bg-base); padding: var(--s-5); }
.metric__value { display: flex; align-items: baseline; gap: 5px; }
.metric__value .num { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; color: var(--accent); line-height: 1; }
.metric__unit { font-size: 13px; color: var(--text-muted); }
.metric__label { margin-top: var(--s-2); font-size: 14px; font-weight: 600; }
.metric__note { font-size: 12px; color: var(--text-faint); margin-top: 3px; }

/* ── 3기둥 ── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-6); }
.pillar {
  padding: var(--s-5); border-radius: var(--r-lg);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-elevated), transparent);
}
.pillar__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--amber); }
.pillar h3 { font-size: 19px; margin: var(--s-2) 0 var(--s-2); }
.pillar p { font-size: 14px; color: var(--text-muted); }

/* ══ 왜 지금인가 ══ */
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4);
  margin-bottom: var(--s-7); position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px;
  background: linear-gradient(90deg, var(--line), var(--state-offline));
}
.timeline__item { position: relative; padding-top: var(--s-5); }
.timeline__item::before {
  content: ""; position: absolute; top: 2px; left: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-base); border: 2px solid var(--line-strong);
}
.timeline__item.is-now::before { background: var(--state-offline); border-color: var(--state-offline); box-shadow: 0 0 14px rgba(239,68,68,.6); }
.timeline__when { display: block; font-size: 13px; color: var(--accent); font-weight: 700; }
.timeline__item.is-now .timeline__when { color: var(--state-offline); }
.timeline__what { display: block; font-size: 17px; font-weight: 700; margin-top: 3px; }
.timeline__note { display: block; font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.card--reg { background: linear-gradient(180deg, rgba(34,211,238,.06), transparent); }

.split { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: var(--s-7); margin-top: var(--s-9); }
.split__title { font-size: clamp(22px, 2.6vw, 30px); }
.split__lead { margin-top: var(--s-3); color: var(--text-muted); font-size: 15px; }
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-6); }
.pain { padding-left: var(--s-4); border-left: 2px solid var(--state-unstable); }
.pain h4 { font-size: 16px; }
.pain p { font-size: 14px; color: var(--text-muted); margin-top: 5px; }

.compare { margin-top: var(--s-9); }
.compare__title { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: var(--s-5); }
.compare__title span { color: var(--text-faint); font-weight: 400; margin-inline: 6px; }

/* ══ 제품 ══ */
.surfaces { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-bottom: var(--s-8); }
.surface {
  padding: var(--s-4); border-radius: var(--r-md);
  border: 1px solid var(--line-soft); background: var(--bg-surface);
}
.surface__where { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.surface strong { display: block; font-size: 16px; margin: 4px 0 3px; }
.surface__role { font-size: 13px; color: var(--text-muted); }

.product { padding-block: var(--s-9); border-top: 1px solid var(--line-soft); }
.product__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.product--flip .product__inner > .product__copy { order: 2; }

/* ★데스크톱 화면은 한 단으로 쌓고 이미지가 폭을 다 쓴다.
   1680px 짜리 스크린샷을 600px 칸에 넣으면 글씨가 하나도 안 읽힌다. */
.product--wide .product__inner { grid-template-columns: 1fr; gap: var(--s-6); }
.product--wide .product__copy { max-width: 720px; }
.product--wide .chips { margin-top: var(--s-3); }

.product__kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.kdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.product__name { font-size: clamp(28px, 3.6vw, 42px); margin-top: var(--s-3); }
.product__role { font-size: 15px; color: var(--text-muted); margin-top: 6px; }
.product__tagline { font-size: clamp(17px, 2vw, 21px); font-weight: 600; margin-top: var(--s-4); color: var(--text-strong); }
.product__summary { font-size: 15px; color: var(--text-muted); margin-top: var(--s-3); max-width: 38em; }
.product__platform {
  display: inline-block; margin-top: var(--s-4); padding: 5px 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 12px; color: var(--text-faint);
}
.product__highlights { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.product__highlights li { display: flex; gap: var(--s-3); align-items: baseline; font-size: 14px; }
.product__highlights strong { flex: none; min-width: 8.5em; color: var(--accent); }
.product__highlights span { color: var(--text-muted); }

.fgroups { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); margin-top: var(--s-8); }
.fgroup { padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.fgroup__name { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-3); }
.fgroup__list li {
  font-size: 13.5px; color: var(--text-muted); padding-left: 16px; position: relative;
  margin-bottom: 9px; line-height: 1.55;
}
.fgroup__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong);
}

/* 제품별 강조색 — 목업과 키커에만 쓴다. 본문 색은 바꾸지 않는다. */
.product--amber  { --accent: #F5B942; --accent-soft: rgba(245,185,66,.12); --accent-line: rgba(245,185,66,.3); }
.product--teal   { --accent: #2DD4BF; --accent-soft: rgba(45,212,191,.12); --accent-line: rgba(45,212,191,.3); }
.product--violet { --accent: #A78BFA; --accent-soft: rgba(167,139,250,.12); --accent-line: rgba(167,139,250,.3); }

@media (max-width: 1000px) {
  .hero__inner, .product__inner, .split { grid-template-columns: 1fr; }
  .product--flip .product__inner > .product__copy { order: 0; }
  .metrics, .surfaces, .timeline { grid-template-columns: repeat(2, 1fr); }
  .fgroups { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  /* ★좁아져도 규칙은 같다 — 가로 사진은 가로로, 세로 사진은 세로로. */
  .field-story { grid-template-columns: 1fr 1fr; }
  .field-photo--control { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 9; }
  .field-photo--mobile  { grid-column: 1; grid-row: 2; aspect-ratio: 4 / 5; min-height: 0; }
  .field-story__aside   { grid-column: 2; grid-row: 2; }
}
@media (max-width: 640px) {
  .metrics, .surfaces, .timeline, .pains, .fgroups { grid-template-columns: 1fr; }
  .product { padding-block: var(--s-8); }
  .hero__photo { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
  .hero__photo img { object-position: 62% center; }
  .hero__photo figcaption { align-items: flex-start; flex-direction: column; gap: 6px; }
  .field-story { display: flex; flex-direction: column; }
  .field-photo--control { aspect-ratio: 16 / 10; min-height: 0; }
  .field-photo--mobile  { aspect-ratio: 4 / 5;  min-height: 0; }
  .field-story__aside { min-height: 0; }
}
