/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --black: #1a1a1a;
  --gray: #6b7280;
  --light: #f9fafb;
  --white: #ffffff;
  --cream: #fef7ed;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

/* === Header === */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid #f3f4f6;
  position: sticky; top: 0; background: var(--white); z-index: 100;
}
.logo {
  font-size: 18px; font-weight: 700; text-decoration: none; color: var(--black);
}
.header-nav { display: flex; gap: 24px; }
.header-nav a {
  text-decoration: none; color: var(--gray); font-size: 14px; font-weight: 500;
  transition: color .2s;
}
.header-nav a:hover { color: var(--orange); }
.lang-select {
  padding: 6px 12px; border-radius: 8px; border: 1px solid #e5e7eb;
  background: var(--white); color: var(--black); font-size: 14px;
  cursor: pointer; outline: none; -webkit-appearance: none;
  font-family: inherit;
}
.lang-select:focus { border-color: var(--orange); }

/* === Hero === */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  min-height: calc(100vh - 70px);
}
.hero-text { flex: 1; max-width: 560px; }
.hero-badge {
  color: var(--orange); font-size: 14px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero-title {
  font-size: 80px; font-weight: 900; line-height: 1; margin-bottom: 24px;
  letter-spacing: -2px;
}
.hero-title .cat { color: var(--orange); }
.hero-title .gatekeeper { color: var(--black); display: block; }
.hero-subtitle {
  font-size: 22px; color: var(--gray); margin-bottom: 36px; line-height: 1.5;
}
.hero-buttons {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px;
}
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 28px; border-radius: 50px; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; transition: all .2s;
}
.btn-primary {
  background: var(--orange); color: white;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 8px 25px rgba(249,115,22,.3); }
.btn-secondary {
  background: var(--black); color: white;
}
.btn-secondary:hover { background: #333; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--black); border: 2px solid #d1d5db;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-disabled {
  background: #e5e7eb; color: #9ca3af; cursor: not-allowed; pointer-events: none;
}
.btn-disabled small { font-size: 12px; }
.hero-note {
  font-size: 12px; color: #d1d5db; max-width: 400px;
}

/* === Hero Cat Image === */
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-cat {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  object-fit: cover;
}

/* === Features === */
.features {
  padding: 100px 40px;
  background: var(--cream);
  text-align: center;
}
.features h2 {
  font-size: 36px; font-weight: 800; margin-bottom: 60px;
}
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-card {
  background: white; padding: 40px 32px; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 48px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { color: var(--gray); font-size: 15px; }

/* === How It Works === */
.how-it-works {
  padding: 100px 40px;
  text-align: center;
}
.how-it-works h2 {
  font-size: 36px; font-weight: 800; margin-bottom: 60px;
}
.steps {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap; max-width: 900px; margin: 0 auto;
}
.step {
  background: var(--teal); color: white; padding: 36px 28px;
  border-radius: var(--radius); flex: 1; min-width: 200px;
}
.step-number {
  font-size: 36px; font-weight: 900; opacity: .5; margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; opacity: .9; }
.step-arrow {
  font-size: 32px; color: var(--teal); font-weight: 700;
}

/* === Download === */
.download {
  padding: 100px 40px;
  background: var(--light);
  text-align: center;
}
.download h2 {
  font-size: 36px; font-weight: 800; margin-bottom: 48px;
}
.download-card {
  background: white; padding: 48px 40px; border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 600px; margin: 0 auto 32px;
  position: relative; text-align: center;
}
.download-card.featured {
  border: 3px solid var(--orange);
}
.download-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--black); color: white; padding: 4px 16px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.download-icon { font-size: 48px; margin-bottom: 16px; }
.download-card h3 { font-size: 24px; margin-bottom: 12px; }
.download-card > p { color: var(--gray); margin-bottom: 24px; }
.download-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* === Footer === */
.footer {
  text-align: center; padding: 40px;
  border-top: 1px solid #f3f4f6; color: var(--gray); font-size: 14px;
}
.footer nav { margin-top: 12px; display: flex; gap: 24px; justify-content: center; }
.footer nav a { color: var(--gray); text-decoration: none; }
.footer nav a:hover { color: var(--orange); }

/* === Responsive === */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse; padding: 40px 24px; text-align: center;
  }
  .hero-title { font-size: 48px; }
  .hero-title .gatekeeper { display: inline; }
  .hero-buttons { justify-content: center; }
  .hero-image { margin-bottom: 40px; }
  .hero-cat { max-height: 350px; }
  .header { padding: 12px 20px; flex-wrap: wrap; gap: 8px; }
  .header-nav { order: 3; width: 100%; justify-content: center; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
}
