/* ============================================================
   別扣我 Official Website — RWD style.css
   ============================================================ */

:root {
  --orange: #FF9800;
  --green:  #00ff88;
  --bg:     #000000;
  --bg-card: #0f0f0f;
  --bg-card2: #141414;
  --border:  #1e1e1e;
  --border2: #2a2a2a;
  --text:    #ffffff;
  --sub:     #888888;
  --muted:   #444444;
  --font:    'Inter', 'Noto Sans TC', sans-serif;
  --radius:  16px;
  --radius-lg: 24px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Scroll Animations ─────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos].aos-visible { opacity: 1; transform: translateY(0); }

/* ── Section Header ────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 5px 14px;
  border: 1px solid rgba(255,152,0,0.25);
  border-radius: 50px;
  background: rgba(255,152,0,0.06);
}
.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.section-subtitle {
  color: var(--sub);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Navbar ────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  margin-right: auto;
}
.logo-img { height: 34px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; }
.nav-link {
  color: var(--sub);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  background: var(--orange);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 50px;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.88; transform: scale(1.03); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.98);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--sub);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.mobile-link:hover { color: var(--text); background: rgba(255,255,255,0.03); }

/* ── Store Badges (Official) ───────────────── */
/*
 * Apple: min 40px height, clear space = 1/4 badge height (~13px), black badge first
 * Google Play: use official "Get it on Google Play" badge only, no color changes
 */
.hero-buttons,
.download-btns {
  align-items: center; /* 對齊兩個不同高度的 badge */
}
.badge-link {
  display: inline-block;
  /* Apple 要求四周留白 1/4 badge 高度 ≈ 13px */
  padding: 6px;
  transition: transform 0.2s, opacity 0.2s;
  border-radius: 8px;
}
.badge-link:hover { transform: translateY(-2px); opacity: 0.88; }
.badge-img {
  display: block;
  height: 48px; /* 符合 Apple 最小 40px，留有餘裕 */
  width: auto;
}
/*
 * Google Play PNG 官方圖檔內建透明留白（約 15% 上下）
 * 加大高度讓視覺上與 App Store badge 等高
 */
.badge-google { height: 72px; }

/* ── Hero ──────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 110px 0 80px;
}
.hero-bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 50%, rgba(255,152,0,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(0,255,136,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,152,0,0.3);
  background: rgba(255,152,0,0.07);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.highlight {
  background: linear-gradient(135deg, var(--orange), #ffc107);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--sub);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Phone Mockup */
.hero-mockup {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone-frame {
  width: 230px;
  background: #111;
  border-radius: 40px;
  border: 2px solid #2a2a2a;
  padding: 14px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative; z-index: 2;
  animation: floatPhone 4s ease-in-out infinite;
}
@keyframes floatPhone {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.phone-screen {
  background: #0a0a0a;
  border-radius: 28px;
  padding: 28px 18px 22px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  min-height: 280px; justify-content: center;
  border: 1px solid var(--border);
}
.speedo-ring {
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 3px solid rgba(255,152,0,0.3);
  background: radial-gradient(circle, #111 60%, #0a0a0a);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 30px rgba(255,152,0,0.1), inset 0 0 20px rgba(0,0,0,0.5);
}
.speedo-inner { text-align: center; }
.speedo-speed {
  font-size: 48px; font-weight: 900;
  color: var(--orange); line-height: 1;
  letter-spacing: -2px; transition: color 0.5s;
}
.speedo-unit { font-size: 12px; color: var(--sub); margin-top: 2px; }
.speedo-limit {
  position: absolute; bottom: 6px; right: 6px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid #e53935;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.speedo-limit-num   { font-size: 13px; font-weight: 900; color: #000; line-height: 1; }
.speedo-limit-label { font-size: 7px; color: #555; font-weight: 700; }
.speedo-status {
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 50px;
  transition: all 0.5s;
}
.speedo-status.safe {
  background: rgba(0,255,136,0.1);
  color: var(--green);
  border: 1px solid rgba(0,255,136,0.2);
}
.speedo-status.warn {
  background: rgba(255,152,0,0.15);
  color: var(--orange);
  border: 1px solid rgba(255,152,0,0.3);
}
.phone-glow {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,152,0,0.12), transparent 70%);
  bottom: -40px; left: 50%; transform: translateX(-50%);
  filter: blur(24px); z-index: 1;
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  cursor: pointer; opacity: 0.35; transition: opacity 0.2s;
}
.hero-scroll:hover { opacity: 0.7; }
.scroll-arrow {
  width: 22px; height: 22px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: arrowBounce 2s infinite;
}
@keyframes arrowBounce {
  0%,100% { transform: rotate(45deg) translate(0,0); }
  50%      { transform: rotate(45deg) translate(4px,4px); }
}

/* ── Stats ─────────────────────────────────── */
.stats-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: 38px; font-weight: 900;
  color: var(--orange); letter-spacing: -1px; line-height: 1;
}
.stat-num span { font-size: 26px; }
.stat-label { color: var(--sub); font-size: 13px; margin-top: 8px; }

/* ── Features ──────────────────────────────── */
.features { padding: 100px 0; background: var(--bg); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  border-color: var(--border2);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.feature-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.feature-icon-wrap.orange { background: rgba(255,152,0,0.1);  border: 1px solid rgba(255,152,0,0.2); }
.feature-icon-wrap.green  { background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.15); }
.feature-icon-wrap.blue   { background: rgba(66,165,245,0.08); border: 1px solid rgba(66,165,245,0.15); }
.feature-icon-wrap.purple { background: rgba(171,71,188,0.08); border: 1px solid rgba(171,71,188,0.15); }
.feature-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { color: var(--sub); font-size: 14px; line-height: 1.7; }

/* ── Gallery ───────────────────────────────── */
.gallery { padding: 100px 0; background: #050505; }
.gallery-portrait-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.gallery-item { text-align: center; flex: 0 0 auto; }
.gallery-phone {
  width: 190px;
  background: #111;
  border-radius: 32px;
  border: 2px solid var(--border2);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transition: transform 0.4s, border-color 0.3s;
}
.gallery-phone:hover { transform: translateY(-8px) scale(1.02); border-color: var(--orange); }
.gallery-phone img { width: 100%; display: block; }
.gallery-phone-large {
  width: 230px;
  transform: translateY(-14px);
}
.gallery-phone-large:hover { transform: translateY(-22px) scale(1.02); }

.gallery-landscape-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.gallery-landscape-item {
  text-align: center;
  flex: 1 1 360px;
  max-width: 500px;
}
.gallery-landscape-frame {
  background: #111;
  border-radius: 18px;
  border: 2px solid var(--border2);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transition: transform 0.4s, border-color 0.3s;
}
.gallery-landscape-frame:hover { transform: translateY(-6px) scale(1.01); border-color: var(--orange); }
.gallery-landscape-frame img { width: 100%; display: block; }
.caption { margin-top: 12px; color: var(--sub); font-size: 13px; font-weight: 500; }

/* ── Premium ───────────────────────────────── */
.premium { padding: 100px 0; background: var(--bg); }
.premium-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.premium-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.premium-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.premium-card:hover { transform: translateY(-4px); border-color: var(--border2); }
.premium-card:hover::after { opacity: 0.6; }
.premium-icon { font-size: 34px; margin-bottom: 14px; }
.premium-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.premium-card p  { color: var(--sub); font-size: 13px; line-height: 1.6; }

/* ── Download ──────────────────────────────── */
.download { padding: 60px 0 100px; }
.download-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative; overflow: hidden;
}
.download-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 0% 50%, rgba(255,152,0,0.04), transparent 60%);
  pointer-events: none;
}
.download-text .section-label { display: inline-block; margin-bottom: 10px; }
.download-text h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 10px; letter-spacing: -0.5px;
}
.download-text p { color: var(--sub); font-size: 15px; }
.download-btns { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Footer ────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: #000;
}
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-name { font-size: 18px; font-weight: 800; color: var(--orange); }
.footer-links {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
}
.footer-links a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--sub); }
.footer-copy { color: var(--muted); font-size: 12px; text-align: center; }

/* ============================================================
   RWD Breakpoints
   ============================================================ */

/* Tablet */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-buttons { justify-content: center; }
  .hero-subtitle br { display: none; }
  .hero-mockup { order: -1; }
  .phone-frame { width: 200px; }
  .speedo-ring { width: 130px; height: 130px; }
  .speedo-speed { font-size: 40px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  .premium-grid { grid-template-columns: repeat(2, 1fr); }

  .download-box {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }
  .download-btns { justify-content: center; }
}

/* Mobile */
@media (max-width: 600px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 90px 0 60px; }
  .hero-title { letter-spacing: -0.5px; }
  .hero-note br { display: none; }
  .store-btn { padding: 11px 16px; }
  .store-btn-title { font-size: 15px; }

  .features { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-header { margin-bottom: 40px; }

  .gallery { padding: 72px 0; }
  .gallery-portrait-row { gap: 14px; }
  .gallery-phone { width: 140px; border-radius: 24px; }
  .gallery-phone-large { width: 170px; }
  .gallery-landscape-item { flex: 1 1 280px; }

  .premium { padding: 72px 0; }
  .premium-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .premium-card { padding: 22px 16px; }

  .download { padding: 48px 0 72px; }
  .download-box { padding: 32px 20px; gap: 28px; border-radius: var(--radius); }
  .download-btns { flex-direction: column; width: 100%; }
  .store-btn { justify-content: center; width: 100%; }

  .footer { padding: 36px 0; }
  .footer-links { gap: 16px; }
}

/* Small Mobile */
@media (max-width: 380px) {
  .premium-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; justify-content: center; }
  .gallery-phone { width: 120px; }
  .gallery-phone-large { width: 148px; }
}
