/* ── 배경 코스모스 (반응형 이미지) ── */
.hero-bg {
  position: absolute;
  inset: -2.5%;
  z-index: 0;
  background-color: var(--bg);
  background-image: url('../assets/hero_space.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.82) brightness(0.93);
  will-change: transform;
}

/* 데스크톱: WebP 우선, JPG 폴백 */
@media (min-width: 1281px) {
  .hero-bg {
    background-image: image-set(
      url('../assets/hero_space-2400.webp') 1x type('image/webp'),
      url('../assets/hero_space.jpg') 1x type('image/jpeg')
    );
  }
}

/* 타블렛: 1280px 이하 */
@media (min-width: 769px) and (max-width: 1280px) {
  .hero-bg {
    background-image: image-set(
      url('../assets/hero_space-1280.webp') 1x type('image/webp'),
      url('../assets/hero_space.jpg') 1x type('image/jpeg')
    );
  }
}

/* 모바일: 768px 이하 */
@media (max-width: 768px) {
  .hero-bg {
    background-image: image-set(
      url('../assets/hero_space-768.webp') 1x type('image/webp'),
      url('../assets/hero_space-768.jpg') 1x type('image/jpeg')
    );
  }
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(115% 92% at 50% 44%, rgba(4, 5, 12, 0.3) 0%, rgba(4, 5, 12, 0.1) 42%, rgba(4, 5, 12, 0.44) 76%, rgba(8, 10, 17, 0.9) 100%),
    linear-gradient(to bottom, rgba(8, 10, 17, 0.4) 0%, transparent 22%, transparent 58%, rgba(8, 10, 17, 0.86) 92%, var(--bg) 100%);
}

/* ── 히어로 ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 94vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 84px 0 72px;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 2px;
  color: var(--gold-soft);
  border: 1px solid rgba(224, 177, 94, 0.35);
  background: rgba(8, 10, 20, 0.4);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: clamp(32px, 5.8vw, 56px);
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: #eef1f8;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6), 0 0 44px rgba(70, 110, 220, 0.35);
}

.hero h1 .g {
  color: var(--gold-soft);
}

.hero p {
  margin: 24px auto 0;
  max-width: 560px;
  color: #c7cdde;
  font-size: clamp(15px, 2.4vw, 17.5px);
  line-height: 1.85;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero p b {
  color: #fff;
  font-weight: 500;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-logo .logo-mark {
  width: 96px;
  height: 62px;
  filter: drop-shadow(0 0 18px rgba(224, 177, 94, 0.48));
}

.hero-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: #9aa0b6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* ── 승인 카드 목업 ── */
.mock {
  max-width: 360px;
  margin: 52px auto 0;
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}

.mock::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(224, 177, 94, 0.4), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mock-code {
  font-size: 12px;
  color: var(--gold-soft);
  letter-spacing: 1px;
  font-weight: 600;
}

.mock-timer {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 9px;
}

.mock-sym {
  font-family: 'Noto Serif KR', serif;
  font-size: 24px;
  font-weight: 700;
}

.mock-side {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 7px;
  margin-left: 8px;
  background: rgba(45, 212, 167, 0.14);
  color: var(--long);
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.mock-cell {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.mock-cell .l {
  font-size: 10.5px;
  color: var(--faint);
}

.mock-cell .v {
  font-size: 14px;
  color: var(--fg);
  font-weight: 600;
  margin-top: 2px;
}

.mock-btns {
  display: flex;
  gap: 9px;
  margin-top: 6px;
}

.mock-approve {
  flex: 1;
  text-align: center;
  background: var(--gold);
  color: #1a1407;
  font-weight: 800;
  padding: 11px;
  border-radius: 11px;
  font-size: 14px;
}

.mock-reject {
  width: 52px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 11px;
  border-radius: 11px;
  font-size: 14px;
}

/* ── 섹션 공통 ── */
section.block {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.sec-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.sec-tag {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600;
}

.sec-head h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(23px, 3.6vw, 32px);
  font-weight: 700;
  margin-top: 10px;
  line-height: 1.35;
}

.sec-head p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 14px;
  line-height: 1.8;
}

/* ── 작동 방식 ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  position: relative;
  min-width: 0;   /* 🔴 그리드 아이템이 min-content(긴 CJK 문장)로 트랙을 밀어 컬럼이 늘어나는 것 방지 */
}
.step h3, .step p { overflow-wrap: anywhere; word-break: break-word; }

.step .n {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1407;
  background: var(--gold-soft);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 16px 0 8px;
}

.step p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}

.step .arrow {
  position: absolute;
  right: -15px;              /* 18px 갭 중앙에 — 카드와 안 겹치게 */
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 14px;           /* 갭(18px)보다 작게 → 겹침 방지 */
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 760px) {
  .step .arrow {
    display: none;
  }
}

/* ── 특징 그리드 ── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 880px) {
  .feat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
}

.feat {
  min-width: 0;   /* 🔴 CJK 긴 문장이 1fr 컬럼을 밀어 늘어나는 것 방지 */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.feat:hover {
  border-color: #33405c;
  transform: translateY(-3px);
}

.feat .ico {
  font-size: 22px;
  margin-bottom: 14px;
}

.feat h3, .feat p { overflow-wrap: anywhere; word-break: break-word; }
.feat h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feat p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── 규제/안심 ── */
.trust {
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 38px 34px;
}

.trust h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.trust .lead {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 540px;
  margin: 0 auto 28px;
}

.trust-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 30px;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .trust-rows {
    grid-template-columns: 1fr;
  }
}

.trow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trow .chk {
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 800;
  margin-top: 1px;
}

.trow b {
  font-weight: 600;
  color: var(--fg);
  font-size: 14.5px;
}

.trow span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* ── 요금제 ── */
.price {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.price .ribbon {
  position: absolute;
  top: 16px;
  right: -34px;
  transform: rotate(45deg);
  background: var(--gold);
  color: #1a1407;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 42px;
}

.price h3 {
  font-size: 15px;
  color: var(--gold-soft);
  letter-spacing: 1px;
  font-weight: 600;
}

.price .amt {
  font-family: 'Noto Serif KR', serif;
  font-size: 40px;
  font-weight: 700;
  margin: 14px 0 4px;
}

.price .amt small {
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
}

.price .free {
  color: var(--long);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.price ul {
  text-align: left;
  margin: 22px 0;
  display: grid;
  gap: 11px;
}

.price li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
}

.price li .c {
  color: var(--gold);
}

.price .btn {
  width: 100%;
  justify-content: center;
}

/* ── FAQ ── */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  color: var(--fg);
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '＋';
  color: var(--gold);
  font-weight: 700;
  flex: 0 0 auto;
}

details[open] summary::after {
  content: '－';
}

details p {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ── CTA 밴드 ── */
.band {
  text-align: center;
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(224, 177, 94, 0.12), transparent 60%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 52px 30px;
}

.band h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.35;
}

.band p {
  color: var(--muted);
  margin: 16px auto 0;
  max-width: 480px;
  font-size: 15px;
}

/* ── 푸터 ── */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 60px;
  margin-top: 20px;
}

.foot-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 30px;
}

.foot-brand .k {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  color: var(--gold);
  font-weight: 700;
}

.foot-brand .logo-mark {
  width: 34px;
  height: 22px;
  margin-right: 9px;
}

.foot-brand p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
  max-width: 300px;
  line-height: 1.7;
}

.foot-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.foot-col h4 {
  font-size: 12.5px;
  color: var(--gold-soft);
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 600;
}

.foot-col a {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  padding: 5px 0;
  transition: color 0.2s;
}

.foot-col a:hover {
  color: var(--fg);
}

.disc {
  background: rgba(217, 138, 138, 0.06);
  border: 1px solid rgba(217, 138, 138, 0.25);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 8px;
}

.foot-meta {
  color: var(--faint);
  font-size: 12px;
  margin-top: 24px;
  line-height: 1.9;
  text-align: center;
}

/* ── 문제 섹션 ── */
.problem-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.problem-text {
  margin-bottom: 36px;
}

.problem-text p {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  color: #c7cdde;
}

.problem-text p.sub {
  font-size: clamp(15px, 2.2vw, 17px);
  font-weight: 400;
  color: var(--muted);
  margin-top: 12px;
}

.problem-solution {
  background: linear-gradient(180deg, rgba(224, 177, 94, 0.08), transparent);
  border: 1px solid rgba(224, 177, 94, 0.2);
  border-radius: 18px;
  padding: 32px;
}

.problem-solution p.highlight {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(22px, 3.8vw, 28px);
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.problem-solution p.sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

/* ── 크루·오빗·승인·교신 섹션 (비활성 상태) ── */
.crew-section,
.orbit-section,
.approval-section,
.commlog-section {
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.crew-cards,
.orbit-canvas-wrap,
.approval-demo,
.commlog-stream {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 데모 배지 */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(224, 177, 94, 0.15);
  color: var(--gold-soft);
  border: 1px solid rgba(224, 177, 94, 0.3);
  margin-left: 8px;
}

.demo-badge {
  background: rgba(255, 111, 156, 0.12);
  color: #ff6f9c;
  border-color: rgba(255, 111, 156, 0.25);
}

/* ── 오빗 관제탑 ── */
.orbit-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(8, 10, 17, 0) 0%, rgba(17, 21, 28, 0.4) 50%, rgba(8, 10, 17, 0) 100%);
  opacity: 1 !important;
}

.orbit-container-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.orbit-container {
  position: relative; /* 스캔리스트 absolute 앵커 — 박스 "안쪽" 좌측 */
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

@media (max-width: 768px) {
  .orbit-container {
    width: 60vw;
    aspect-ratio: 1;
    max-width: 100%;
  }
}

/* 데모 연출 배지 — 오빗 박스 안 우상단. 코랄핑크는 Pulse 엔진색과 의미 충돌이라 뮤트 톤 */
.orbit-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 10;
  background: rgba(8, 10, 20, 0.5);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* 좌상단 점멸 라벨 — 앱 _PulseLabel(LIVE SCANNER) 문법, 웹은 DEMO SCANNER(정직) */
.orbit-live {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 10;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #FFD24A;
  animation: orbitLivePulse 1.1s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orbitLivePulse {
  from { opacity: 0.3; }
  to   { opacity: 1.0; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-live { animation: none; opacity: 0.8; }
}

/* 우하단 범례 — 앱 _legend 크립토 8항목(6px 색점 + 9px 뮤트 텍스트) */
.orbit-legend {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 70%;
  font-size: 9px;
  color: var(--muted);
  pointer-events: none;
}

.orbit-legend .lg-item {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  line-height: 14px;
}

.orbit-legend .lg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 3px;
  display: inline-block;
}

.orbit-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  animation: fadeInOut 2s ease-in-out infinite 3s;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@media (max-width: 768px) {
  .orbit-section {
    padding: 60px 0;
  }

  .orbit-container-wrap {
    margin-top: 30px;
  }
}

/* ── 좌측 스캔리스트 ── */
.orbit-scan-list {
  position: absolute;
  left: 10px;
  top: 26px;
  bottom: 26px; /* 원본 orbit_view.dart:326 — top:26, bottom:26 */
  width: 120px;
  overflow: hidden;
  z-index: 2; /* 캔버스 위 */
  pointer-events: none; /* 드래그 회전 방해 금지 */
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 9px;
  line-height: 16px;
}

.scan-row {
  height: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scan-left {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scan-right {
  flex-shrink: 0;
  margin-left: 4px;
  color: #7B8194;
  white-space: nowrap;
}
