/* ============================================
   基礎設定
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6A4CFF;
  --primary-dark: #5A3CE8;
  --primary-light: #8A6CFF;
  --dark-gray: #222222;
  --light-gray: #F3F3F6;
  --text-gray: #666666;
  --text-light: #888888;
  --error-color: #F44336;
  --success-color: #4CAF50;
  --white: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--dark-gray);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   Hero 區塊
   ============================================ */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(135deg, #F8F7FF 0%, var(--light-gray) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tagline {
  font-size: 14px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.feature-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 10px 0;
}

.main-heading {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-gray);
}

.sub-heading {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.5;
}

.promise-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
  box-shadow: var(--shadow);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  width: 100%;
  max-width: 500px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 占位符樣式（如果圖片載入失敗時顯示） */
.hero-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #E8E5FF 0%, #D4CFFF 100%);
  z-index: -1;
}

/* ============================================
   關鍵賣點區
   ============================================ */
.features {
  padding: 80px 0;
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--light-gray);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 12px;
}

.feature-description {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ============================================
   為什麼要幫助區塊
   ============================================ */
.why-help-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-gray);
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.2;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.reason-card {
  text-align: center;
  padding: 40px 24px;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.reason-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.reason-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 12px;
}

.reason-card p {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ============================================
   實際場景說明區塊
   ============================================ */
.scenarios-section {
  padding: 80px 0;
  background-color: var(--white);
}

.scenarios-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.scenario-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 30px;
  background-color: var(--light-gray);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scenario-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.scenario-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.scenario-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 12px;
}

.scenario-item p {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
}

.scenarios-note {
  text-align: center;
  font-size: 16px;
  color: var(--text-gray);
  padding: 20px;
  background-color: #FFF9E6;
  border-radius: 12px;
  border-left: 4px solid #FFC107;
  line-height: 1.6;
}

/* ============================================
   Waitlist 表單區
   ============================================ */
.waitlist-form-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-gray);
  text-align: center;
  margin-bottom: 12px;
}

.form-subtitle {
  font-size: 16px;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 30px;
}

/* 社會證明和時間預期 */
.waitlist-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--light-gray);
  border-radius: 12px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-gray);
}

.info-icon {
  font-size: 20px;
}

.info-text {
  line-height: 1.5;
}

.info-text strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* 優先體驗權益 */
.priority-benefits {
  background: linear-gradient(135deg, #F8F7FF 0%, #F0EDFF 100%);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
}

.benefits-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 16px;
  text-align: center;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefits-list li {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
  padding-left: 0;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-gray);
}

.label-hint {
  font-weight: 400;
  color: var(--text-light);
  font-size: 13px;
}

.required {
  color: var(--error-color);
  margin-left: 4px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--white);
  color: var(--dark-gray);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(106, 76, 255, 0.1);
}

.form-input.error,
.form-select.error {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.form-input.error:focus,
.form-select.error:focus {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2);
}

.form-input::placeholder {
  color: var(--text-light);
}

.error-message {
  font-size: 13px;
  color: var(--error-color);
  min-height: 18px;
  display: block;
}

/* 當錯誤訊息為空時隱藏 */
.error-message:empty {
  display: none;
  min-height: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
}

.submit-button {
  width: 100%;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 10px;
  font-family: inherit;
  position: relative;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.submit-button:active:not(:disabled) {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.button-loading {
  display: inline-block;
}

/* ============================================
   訊息卡片（成功/錯誤）
   ============================================ */
.message-card {
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin-top: 30px;
}

.success-message {
  background-color: #E8F5E9;
  border: 2px solid var(--success-color);
}

.error-message {
  background-color: #FFEBEE;
  border: 2px solid var(--error-color);
}

.message-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.message-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 12px;
}

.message-content {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 40px 0;
  background-color: var(--light-gray);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-text {
  font-size: 14px;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-separator {
  color: var(--text-light);
}

/* ============================================
   響應式設計（Mobile）
   ============================================ */
@media (max-width: 768px) {
  .hero {
    padding: 40px 0 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .main-heading {
    font-size: 32px;
  }

  .sub-heading {
    font-size: 18px;
  }

  .hero-image-container {
    height: 300px;
  }

  .features {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .why-help-section {
    padding: 60px 0;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .scenarios-section {
    padding: 60px 0;
  }

  .scenarios-list {
    gap: 20px;
  }

  .scenario-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }

  .scenario-item:hover {
    transform: translateY(-4px);
  }

  .scenarios-note {
    font-size: 14px;
    padding: 16px;
  }

  .waitlist-info {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .info-item {
    justify-content: center;
    font-size: 14px;
  }

  .priority-benefits {
    padding: 20px;
  }

  .benefits-title {
    font-size: 16px;
  }

  .benefits-list {
    gap: 10px;
  }

  .benefits-list li {
    font-size: 14px;
  }

  .waitlist-form-section {
    padding: 60px 0;
  }

  .form-wrapper {
    padding: 40px 24px;
    margin: 0 16px;
  }

  .form-title {
    font-size: 28px;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .main-heading {
    font-size: 28px;
  }

  .sub-heading {
    font-size: 16px;
  }

  .form-wrapper {
    padding: 30px 20px;
  }

  .form-title {
    font-size: 24px;
  }

  .promise-badge {
    font-size: 14px;
    padding: 10px 20px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .reason-card {
    padding: 30px 20px;
  }

  .scenario-item {
    padding: 20px;
  }
}

