/* ============================================================
   StarCodeLabs — 별밤 × 스텔라 블루 (+ 굿투고 라임 포인트)
   ============================================================ */
:root {
  --bg: #07090f;
  --bg-2: #0b101c;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eaedf5;
  --muted: #98a2b8;
  /* StarCodeLabs 브랜드 — 스텔라 블루 (로고 별 그라디언트) */
  --star: #6e9bff;
  --star-deep: #4a78e0;
  --star-soft: #9dbcff;
  --star-grad: linear-gradient(135deg, #9dbcff, #6e9bff 45%, #6e7bf0);
  --star-dim: rgba(110, 155, 255, 0.13);
  --star-glow: 0 0 28px rgba(110, 155, 255, 0.35);
  /* 굿투고 시그니처 — 라임 (굿투고 전용 포인트) */
  --lime: #dfff00;
  --lime-dim: rgba(223, 255, 0, 0.14);
  --lime-glow: 0 0 28px rgba(223, 255, 0, 0.35);
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --gray: #9ca3af;
  --font-body: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --font-display: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  /* 한국어 줄바꿈: 어절(공백) 단위로만 끊어 단어 중간 줄바꿈 방지 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

section { scroll-margin-top: 84px; }

::selection { background: var(--star); color: #0b0f14; }

/* ---------- Starfield canvas (배경 그라디언트 포함 고정 레이어) ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 600px at 50% -10%, #131b31 0%, transparent 60%),
    radial-gradient(900px 500px at 85% 40%, rgba(110, 155, 255, 0.045) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.nav, .hero, .page-hero, main, .footer { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-logo {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
}
.brand b { color: var(--star); }

.nav-links {
  display: flex;
  gap: 22px;
  margin-inline: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--star); }
.nav-links a.active { color: var(--star); font-weight: 700; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.gh-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-display);
  transition: color 0.2s;
  white-space: nowrap;
}
.gh-link:hover { color: var(--star); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--star);
  margin-bottom: 22px;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-size: clamp(2rem, 8.4vw, 4.8rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title em {
  font-style: normal;
  color: var(--star);
  text-shadow: var(--star-glow);
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
  max-width: 560px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.code-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 14px 22px;
  background: rgba(10, 14, 24, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 2.4vw, 1rem);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  animation: fadeUp 0.8s 0.3s ease both;
  max-width: calc(100vw - 40px);
  overflow: hidden;
  white-space: nowrap;
}
.prompt { color: #5b657c; }
.c-dim { color: #8a93a8; }
.c-star { color: var(--star); }
.c-text { color: var(--text); }

.cursor {
  width: 9px;
  height: 1.15em;
  background: var(--star);
  box-shadow: var(--star-glow);
  animation: blink 1.05s steps(1) infinite;
  flex-shrink: 0;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  animation: fadeUp 0.8s 0.4s ease both;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-lime {
  background: var(--lime);
  color: #0b0f14;
  box-shadow: var(--lime-glow);
}
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(223, 255, 0, 0.5); }
.btn-star {
  background: var(--star-grad);
  color: #06122e;
  box-shadow: var(--star-glow);
}
.btn-star:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(110, 155, 255, 0.5); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel);
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--panel-strong); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 110px 24px 30px;
}

.sec-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--star);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(1.8rem, 4.4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sec-desc {
  margin-top: 18px;
  color: var(--muted);
  max-width: 620px;
  font-size: 1.02rem;
}

/* ---------- How we work cards ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 155, 255, 0.35);
  background: var(--panel-strong);
}
.card-emoji { font-size: 1.9rem; display: block; margin-bottom: 14px; }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Core values ---------- */
.values-tag { margin-top: 90px; }

.values { border-top: 1px solid var(--line); }

.value-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
  padding: 34px 6px;
  border-bottom: 1px solid var(--line);
}
.value-big {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.value-big .gt {
  font-family: var(--font-mono);
  color: var(--star);
  text-shadow: var(--star-glow);
  margin: 0 4px;
}
.value-row p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Product ---------- */
.product-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px 44px;
  overflow: hidden;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.product-name {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-top: 18px;
}
.product-name small {
  font-family: var(--font-display);
  font-size: 0.45em;
  font-weight: 700;
  color: var(--muted);
  margin-left: 10px;
  letter-spacing: 0.04em;
}

.product-desc { margin-top: 14px; color: var(--muted); font-size: 0.98rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  font-size: 0.83rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

/* 신호등 데모 */
.traffic-demo {
  margin-top: 28px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.demo-label { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.traffic-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.25s, color 0.25s;
}
.traffic-badge:active { transform: scale(0.94); }
.traffic-dot { width: 10px; height: 10px; border-radius: 50%; transition: background 0.25s; }
.demo-hint { margin-top: 10px; font-size: 0.78rem; color: var(--muted); }

.product-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.cta-note { font-size: 0.78rem; color: var(--muted); }

/* 폰 목업 */
.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.phone {
  width: 200px;
  aspect-ratio: 9 / 19.2;
  border-radius: 30px;
  border: 6px solid #222a3e;
  background: #000;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s ease;
  flex-shrink: 0;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.phone-1 { transform: rotate(-9deg) translate(38px, 14px); z-index: 1; }
.phone-2 { transform: translateY(-14px) scale(1.06); z-index: 3; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 50px rgba(223, 255, 0, 0.08); }
.phone-3 { transform: rotate(9deg) translate(-38px, 14px); z-index: 2; }

.phones:hover .phone-1 { transform: rotate(-13deg) translate(52px, 10px); }
.phones:hover .phone-2 { transform: translateY(-24px) scale(1.09); }
.phones:hover .phone-3 { transform: rotate(13deg) translate(-52px, 10px); }

/* Coming soon */
.coming-soon {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding: 26px 30px;
  border: 1px dashed rgba(110, 155, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(110, 155, 255, 0.03);
}
.flask { font-size: 2rem; }
.coming-soon h4 { font-size: 1.05rem; font-weight: 700; }
.coming-soon p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Members ---------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.member-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}
.member-card:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 155, 255, 0.4);
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid var(--line);
  margin-bottom: 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.member-card:hover .avatar {
  border-color: var(--star);
  box-shadow: var(--star-glow);
}

.member-card h3 { font-size: 1.15rem; font-weight: 700; }
.member-role {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.member-bio { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }
.member-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.member-link:hover { color: var(--star); border-color: var(--star); }

.join-card {
  border-style: dashed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.join-star {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 14px rgba(110, 155, 255, 0.5));
  animation: floatStar 3.4s ease-in-out infinite;
}
@keyframes floatStar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin-top: 48px;
  border-left: 2px solid var(--line);
  padding-left: 34px;
}
.timeline li { position: relative; padding-bottom: 44px; }
.timeline li:last-child { padding-bottom: 10px; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--star);
  box-shadow: var(--star-glow);
}
.timeline time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--star);
  letter-spacing: 0.1em;
}
.timeline h3 { font-size: 1.15rem; font-weight: 700; margin-top: 6px; }
.timeline p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; max-width: 560px; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 130px;
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 80px 24px 46px;
}
.footer-big {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.footer-links { margin-top: 22px; }
.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.footer-links a:hover { color: var(--star); border-color: var(--star); }
.dot-sep { color: var(--muted); margin: 0 14px; }
.footer-small { margin-top: 34px; font-size: 0.82rem; color: var(--muted); }

/* ---------- Page hero (서브페이지 상단) ---------- */
.page-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 170px 24px 10px;
  text-align: left;
}
.page-hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--star);
  text-shadow: var(--star-glow);
}
.page-hero .page-desc {
  margin-top: 14px;
  color: var(--muted);
  max-width: 620px;
  font-size: 1.02rem;
}

/* ---------- 랜딩 티저 ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}
.teaser-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.teaser-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 155, 255, 0.4);
  background: var(--panel-strong);
}
.teaser-card h3 { font-size: 1.35rem; font-weight: 800; margin-top: 14px; }
.teaser-card p { color: var(--muted); font-size: 0.93rem; margin-top: 8px; }
.teaser-card .go {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--star);
}

.mini-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
}
.mini-status.live { color: var(--green); background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); }
.mini-status.lab { color: var(--amber); background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); }

.more-link {
  display: inline-block;
  margin-top: 26px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.more-link:hover { color: var(--star); border-color: var(--star); }

.principle-line {
  margin-top: 30px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.principle-line .dot { color: var(--muted); margin: 0 12px; font-weight: 400; }

.avatar-strip {
  display: inline-flex;
  align-items: center;
  margin-top: 34px;
  text-decoration: none;
}
.avatar-strip img,
.avatar-strip .avatar-more {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--line);
  margin-right: -14px;
  background: var(--bg-2);
  transition: transform 0.2s, border-color 0.2s;
}
.avatar-strip .avatar-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-style: dashed;
}
.avatar-strip:hover img,
.avatar-strip:hover .avatar-more { border-color: var(--star); transform: translateY(-4px); }

/* ---------- 실험 중 제품 상태 필 ---------- */
.status-pill.lab {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-pill.lab .pulse-dot {
  background: var(--amber);
  animation-name: pulseAmber;
}
@keyframes pulseAmber {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.value-quote {
  margin-top: 20px;
  padding: 14px 20px;
  border-left: 3px solid var(--star);
  background: rgba(110, 155, 255, 0.05);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- 근무교대 관리미 비주얼 (OCR 플로우 + 근무표 캘린더) ---------- */
.shift-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 420px;
}

.flow-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.flow-step .flow-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.flow-step span { font-size: 0.76rem; color: var(--muted); font-weight: 500; }
.flow-arrow { color: var(--star); font-weight: 700; margin-bottom: 20px; }

.shift-cal {
  width: min(340px, 100%);
  background: rgba(10, 14, 24, 0.8);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.shift-cal .cal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.shift-cal .cal-title b { color: var(--star); font-weight: 700; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-grid .dow {
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  padding-bottom: 2px;
}
.cal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 0 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.62rem;
  color: var(--muted);
}
.cal-cell b {
  font-size: 0.66rem;
  font-weight: 800;
  width: 24px;
  text-align: center;
  border-radius: 6px;
  padding: 1px 0;
}
.cal-cell.d b { color: #38bdf8; background: rgba(56, 189, 248, 0.15); }
.cal-cell.e b { color: var(--amber); background: rgba(245, 158, 11, 0.15); }
.cal-cell.n b { color: #a78bfa; background: rgba(167, 139, 250, 0.15); }
.cal-cell.off b { color: var(--gray); background: rgba(156, 163, 175, 0.15); }

.cal-legend {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--muted);
}
.cal-legend i {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cal-legend i::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 3px;
  display: inline-block;
}
.cal-legend .lg-d::before { background: #38bdf8; }
.cal-legend .lg-e::before { background: var(--amber); }
.cal-legend .lg-n::before { background: #a78bfa; }
.cal-legend .lg-off::before { background: var(--gray); }

.target-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}
.target-note b { color: var(--text); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .product-card { grid-template-columns: 1fr; padding: 36px 28px; }
  .phones { min-height: 430px; margin-top: 10px; }
  .phone { width: 170px; }
}

@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 140px; }
  .shift-visual { min-height: 0; margin-top: 10px; }
  .value-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 4px; }
  .nav { gap: 16px; padding: 12px 18px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.85rem; }
  .phone-1 { transform: rotate(-9deg) translate(52px, 14px); }
  .phone-3 { transform: rotate(9deg) translate(-52px, 14px); }
  .phone { width: 150px; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 320px; }
  .btn { text-align: center; }
  .hero-tag { font-size: 0.68rem; letter-spacing: 0.12em; }
  .code-line { font-size: 0.8rem; padding: 12px 16px; }
  .prompt { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
