/* 路哨 RoadLive 介紹網頁 — 規格見 landing-page-spec.md */

:root {
  --bg: #0D111C;
  --bg-alt: #0A0E17;
  --surface: #161C2C;
  --surface-raised: #181C2E;
  --line: #1E2538;
  --line-strong: #262E45;
  --line-button: #364060;
  --text: #EEF1FA;
  --text-2: #B9C1D6;
  --text-3: #9AA3BD;
  --accent: #7C8CFF;
  --accent-soft: rgba(124, 140, 255, 0.16);
  --accent-light: #AEB8FF;
  --on-accent: #0D111C;
  --cam: #E5484D;
  --cam-text: #FF8A8D;
  --cctv-text: #4FCB8D;
  --cctv-soft: rgba(43, 163, 106, 0.16);
  --status-on: #3FD37F;

  --font-sans: 'Noto Sans TC', 'PingFang TC', sans-serif;
  --font-num: 'Barlow Condensed', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
img, svg { display: block; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-light); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }

/* ---------- 導覽列 ---------- */
.site-header { border-bottom: 1px solid var(--line); }

.site-header .container {
  padding-block: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { border-radius: 10px; }
.brand-text { display: flex; align-items: baseline; gap: 8px; }
.brand-zh { font-size: 20px; font-weight: 900; letter-spacing: 0.04em; }
.brand-en {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  font-size: 15px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.nav-cta:hover { color: var(--on-accent); background: var(--accent-light); }

/* ---------- 共用：章節文字 ---------- */
.eyebrow {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.eyebrow--cam { color: var(--cam-text); }
.eyebrow--cctv { color: var(--cctv-text); }
.eyebrow--more { color: var(--accent-light); }

.h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.25; font-weight: 900; }
.h2--sub { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.3; }

.lead { max-width: 32em; font-size: 17px; color: var(--text-2); }

/* 勾選清單 */
.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 0; list-style: none; font-size: 14px; color: var(--text-3); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { flex: none; color: var(--accent); }

.checks--stack { flex-direction: column; flex-wrap: nowrap; gap: 14px; font-size: 15px; color: var(--text-2); }
.checks--stack li { display: flex; align-items: flex-start; gap: 12px; }
.checks--stack svg { margin-top: 3px; }

/* ---------- 商店按鈕 ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.store-btn-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn-small { font-size: 12px; }
.store-btn-big { font-size: 18px; font-weight: 700; }

.store-btn--light { background: var(--text); color: var(--bg); }
.store-btn--light:hover { color: var(--bg); background: #FFFFFF; }

.store-btn--outline { border-color: var(--line-button); color: var(--text); }
.store-btn--outline:hover { color: var(--text); border-color: var(--accent-light); }

.store-btn--dark { background: var(--bg); color: var(--text); }
.store-btn--dark:hover { color: var(--accent-light); }
.download-box .store-btn:focus-visible { outline-color: var(--bg); }

/* ---------- 手機 mockup ---------- */
.phone-col { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }

.phone {
  flex: none;
  width: 301px;
  height: 628px;
  padding: 10px;
  border-radius: 48px;
  background: #05070C;
  border: 1px solid #2A3348;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.phone img {
  width: 281px;
  height: 608px;
  border-radius: 38px;
  object-fit: cover;
  background: var(--bg);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.hero-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
}
.hero-tag-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--status-on); }

.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.18; font-weight: 900; letter-spacing: 0.01em; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-lead { max-width: 34em; font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); }

.hero-visual-col { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 470px;
  height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-card {
  position: absolute;
  left: 0;
  top: 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--surface-raised);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.float-card-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cam);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.float-card-text { display: flex; flex-direction: column; line-height: 1.3; }
.float-card-title { font-size: 14px; font-weight: 700; }
.float-card-sub { font-size: 12px; color: var(--text-2); }

@media (max-width: 480px) {
  .float-card { display: none; }
}

/* ---------- 數據列 ---------- */
.stats-wrap { padding-bottom: clamp(56px, 7vw, 88px); }

/* 兩格一組：1×4 → 2×2 → 1 欄。分隔線用左上陰影，貼齊外框的線會被 overflow 裁掉，換行後不留殘線 */
.stats {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.stats-pair { flex: 1 1 360px; display: flex; flex-wrap: wrap; }
.stat {
  flex: 1 1 180px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: -1px -1px 0 var(--line);
}
.stat-num { font-family: var(--font-num); font-size: 44px; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--text-3); }

/* ---------- 01／02 章節 ---------- */
.feature-section .container {
  padding-block: clamp(64px, 8vw, 112px);
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 9vw, 120px);
}

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.split--reverse { flex-wrap: wrap-reverse; }

.split-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.feature-list { display: flex; flex-direction: column; gap: 22px; padding: 0; margin: 0; list-style: none; }
.feature { display: flex; align-items: flex-start; gap: 16px; }
.feature-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-list--cctv .feature-icon { background: var(--cctv-soft); color: var(--cctv-text); }
.feature h3 { margin-bottom: 4px; font-size: 19px; font-weight: 700; }
.feature p { font-size: 15px; color: var(--text-3); }

/* 卡片 */
.cards { display: flex; flex-wrap: wrap; gap: 12px; }
.card {
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card h3 { font-size: 17px; font-weight: 700; }
.card p { font-size: 14px; color: var(--text-3); }

.cards--bg .card { flex: 1 1 240px; }

/* ---------- 03 更多功能 ---------- */
.more .container {
  padding-block: clamp(64px, 8vw, 104px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.more-head { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.more-head .h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.25; }
.more-head .lead { max-width: none; }

/* 四張一組、兩張一對：4×2 → 2 欄 → 1 欄，不會出現 3＋3＋2 */
.cards--more { flex-direction: column; flex-wrap: nowrap; }
.cards-quad { display: flex; flex-wrap: wrap; gap: 12px; }
.cards-pair { flex: 1 1 512px; display: flex; flex-wrap: wrap; gap: 12px; }
.cards--more .card { flex: 1 1 250px; padding: 22px; gap: 10px; }
.cards--more .card > svg { color: var(--accent-light); }
.etag-mark {
  height: 26px;
  display: flex;
  align-items: center;
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-light);
}

/* ---------- 為開車設計 ---------- */
.driving {
  padding-block: clamp(56px, 7vw, 88px);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-block: 0;
  list-style: none;
}
.driving li { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; }
.driving svg { color: var(--accent); }
.driving h3 { font-size: 20px; font-weight: 900; }
.driving p { font-size: 15px; color: var(--text-3); }

/* ---------- 下載 ---------- */
.download .container { padding-block: clamp(40px, 6vw, 80px); }

.download-box {
  padding: clamp(32px, 5vw, 64px);
  border-radius: 32px;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.download-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.download-text h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.2; font-weight: 900; }
.download-text p { font-size: 16px; }

/* ---------- 頁尾 ---------- */
.site-footer .container {
  padding-top: 40px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.disclaimer {
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface);
  font-size: 14px;
  color: var(--text-2);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--text-3);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--text-3); }
.footer-nav a:hover { color: var(--accent-light); }
