/* ===== CSS Variables ===== */
:root {
  --accent-green: #1F6B47;
  --accent-green-hover: #185A3B;
  --accent-gold: #E5A62A;
  --accent-gold-text: #8A5C00;
  --accent-red: #C7362C;
  --text-primary: #171717;
  --text-secondary: #6B6B6B;
  --text-tertiary: #9A9A9A;
  --card: #FFFFFF;
  --surface: #FAFAF7;
  --dark-bg: #0F1A15;
  --dark-surface: #16261E;
  --dark-text: #F4F4F0;
  --dark-text-secondary: #A3ADA7;
  --btn-dark-bg: #1F2A24;
  --btn-dark-text: #F4F4F0;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:lang(zh-Hant) body, body:lang(zh-Hant) { font-family: 'DM Sans', -apple-system, 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif; }
:lang(zh-Hans) body, body:lang(zh-Hans) { font-family: 'DM Sans', -apple-system, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }
:lang(ja) body, body:lang(ja) { font-family: 'DM Sans', -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif; }
:lang(ko) body, body:lang(ko) { font-family: 'DM Sans', -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif; }

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  border: none;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-dark {
  background: var(--btn-dark-bg);
  color: var(--btn-dark-text);
  font-size: 14px;
  padding: 12px 24px;
}

.btn-primary {
  background: var(--accent-green);
  color: #FFFFFF;
  font-size: 16px;
  padding: 16px 32px;
}

.btn-primary:hover {
  background: var(--accent-green-hover);
}

.btn-secondary {
  background: var(--card);
  color: var(--text-primary);
  font-size: 16px;
  padding: 16px 32px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-lg {
  font-size: 18px;
  padding: 18px 40px;
}

.btn.is-soon {
  cursor: default;
}

.btn.is-soon:hover {
  transform: none;
  opacity: 1;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  height: 80px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  margin-right: auto;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.nav {
  display: none;
  gap: 32px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.header-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card);
  padding: 32px 20px;
  gap: 24px;
  z-index: 99;
}

.nav.open .nav-link {
  font-size: 20px;
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(31, 107, 71, 0.10), transparent 70%),
    var(--surface);
  padding: 56px 16px 0;
  overflow: hidden;
}

.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.badge-gold {
  background: rgba(229, 166, 42, 0.12);
  color: var(--accent-gold-text);
}

.hero-headline {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-subheadline {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  color: var(--text-secondary);
  max-width: 720px;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-phones {
  width: 100%;
  max-width: 920px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2%;
  margin-top: 24px;
  margin-bottom: -90px;
}

.hero-phones img {
  width: 31%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 26, 21, 0.28);
}

.hero-phones .phone-side {
  margin-top: 48px;
  opacity: 0.96;
}

/* ===== Feature Rows ===== */
.feature-row--light {
  background: var(--card);
}

.feature-row--dark {
  background: var(--dark-bg);
}

.feature-row-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.feature-icon {
  color: var(--accent-green);
}

.feature-row--dark .feature-icon {
  color: var(--accent-gold);
}

.feature-icon i,
.feature-icon svg {
  width: 36px;
  height: 36px;
}

.feature-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  text-wrap: balance;
}

.feature-title--light {
  color: var(--dark-text);
}

.feature-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

.feature-desc--light {
  color: var(--dark-text-secondary);
}

.feature-screenshot {
  width: 100%;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow: hidden;
}

.feature-screenshot img,
.feature-screenshot video {
  width: auto;
  max-width: 100%;
  height: 480px;
  max-height: 70vh;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  display: block;
  object-fit: contain;
  background: #0B1410;
}

.feature-screenshot video {
  aspect-ratio: 444 / 962;
}

.feature-screenshot--light {
  background:
    radial-gradient(ellipse 70% 70% at 50% 40%, rgba(31, 107, 71, 0.10), transparent 70%),
    var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-screenshot--dark {
  background:
    radial-gradient(ellipse 70% 70% at 50% 40%, rgba(229, 166, 42, 0.10), transparent 70%),
    var(--dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Feature Grid ===== */
.feature-grid {
  background: var(--surface);
  padding: 60px 16px;
}

.feature-grid-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.feature-grid-header,
.gallery-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-grid-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-grid-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

.grid-card {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.grid-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(31, 107, 71, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
}

.grid-card-icon i,
.grid-card-icon svg {
  width: 24px;
  height: 24px;
}

.grid-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.grid-card-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== Gallery ===== */
.gallery {
  background: var(--dark-bg);
  padding: 60px 0;
}

.gallery-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.gallery-header {
  padding: 0 16px;
}

.gallery-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-text);
}

.gallery-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--dark-text-secondary);
}

.gallery-track {
  width: 100%;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.gallery-track img {
  flex: 0 0 auto;
  width: 200px;
  height: auto;
  aspect-ratio: 588 / 1280;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  scroll-snap-align: center;
}

/* ===== Final CTA ===== */
.final-cta {
  background: var(--surface);
  padding: 60px 16px;
}

.final-cta-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.final-cta-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.final-cta-headline {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.final-cta-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 640px;
}

.trust-line {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.footnote {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ===== Footer ===== */
.footer {
  background: var(--dark-bg);
  padding: 48px 16px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-text);
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark-text-secondary);
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 120px;
}

.footer-col-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-text);
}

.footer-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark-text-secondary);
  transition: color 0.2s;
}

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

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

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

.copyright {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark-text-secondary);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  color: var(--dark-text-secondary);
  transition: color 0.2s;
}

.social-icon:hover {
  color: var(--dark-text);
}

.social-icon i,
.social-icon svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   Tablet — min-width: 768px
   ======================================== */
@media (min-width: 768px) {
  .header-inner {
    padding: 0 48px;
  }

  .hero {
    padding: 80px 48px 0;
  }

  .hero-headline {
    font-size: 48px;
  }

  .hero-subheadline {
    font-size: 18px;
  }

  .hero-phones {
    margin-bottom: -160px;
  }

  .hero-phones img {
    border-radius: 22px;
  }

  .feature-row-inner {
    padding: 80px 48px;
  }

  .feature-title {
    font-size: 32px;
  }

  .feature-screenshot img,
  .feature-screenshot video {
    height: 560px;
  }

  .feature-grid {
    padding: 80px 48px;
  }

  .grid-container {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    padding: 80px 0;
  }

  .gallery-track {
    padding: 8px 48px 20px;
  }

  .gallery-track img {
    width: 240px;
  }

  .feature-grid-title,
  .gallery-title {
    font-size: 48px;
  }

  .final-cta {
    padding: 80px 48px;
  }

  .final-cta-headline {
    font-size: 48px;
  }

  .footer {
    padding: 48px;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-links {
    gap: 64px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ========================================
   Desktop — min-width: 1024px
   ======================================== */
@media (min-width: 1024px) {
  .header-inner {
    padding: 0 120px;
    gap: 32px;
  }

  .logo {
    margin-right: 0;
  }

  .nav {
    display: flex;
    margin-right: auto;
    margin-left: 24px;
  }

  .header-cta {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }

  .hero {
    padding: 80px 120px 0;
  }

  .hero-headline {
    font-size: 60px;
    max-width: 960px;
  }

  .hero-subheadline {
    font-size: 20px;
  }

  .feature-row-inner {
    flex-direction: row;
    padding: 96px 120px;
    gap: 64px;
  }

  .feature-text {
    flex-shrink: 0;
    width: 480px;
  }

  .feature-title {
    font-size: 36px;
  }

  .feature-screenshot {
    flex: 1;
    padding: 40px;
  }

  .feature-screenshot img,
  .feature-screenshot video {
    height: 580px;
  }

  .feature-grid {
    padding: 96px 120px;
  }

  .grid-container {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .gallery {
    padding: 96px 0;
  }

  .gallery-track {
    justify-content: safe center;
    padding: 8px 120px 20px;
  }

  .final-cta {
    padding: 96px 120px;
  }

  .footer {
    padding: 48px 120px;
  }
}

/* ===== Language Switcher ===== */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.lang-btn svg {
  width: 16px;
  height: 16px;
}

.lang-btn:hover {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.3);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  padding: 4px 0;
  z-index: 200;
}

.lang-switcher.open .lang-dropdown {
  display: block;
}

.lang-option {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

.lang-option:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.lang-option.active {
  font-weight: 600;
  color: var(--accent-green);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
