/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange:  #E06830;
  --navy:    #1E3A6E;
  --blue:    #4BA8D4;
  --light:   #F4F8FC;
  --white:   #FFFFFF;
  --text:    #2D2D2D;
  --muted:   #6B7280;
  --border:  #E5EBF3;
  --radius:  16px;
  --shadow:  0 8px 32px rgba(30,58,110,.12);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo svg { width: 40px; height: 40px; }
.nav-logo span { font-size: 1.4rem; font-weight: 900; color: var(--navy); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--orange); color: var(--white);
  padding: 10px 22px; border-radius: 50px;
  font-size: .875rem; font-weight: 700;
  transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5298 55%, var(--blue) 100%);
  color: var(--white);
  padding: 100px 5% 80px;
  display: flex; align-items: center; gap: 60px;
  overflow: hidden; position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-text { flex: 1; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 16px; border-radius: 50px;
  font-size: .8rem; font-weight: 500; margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; background: #5EE08A; border-radius: 50%; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900; line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span { color: #FFB347; }
.hero p {
  font-size: 1.1rem; opacity: .85;
  max-width: 500px; margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--orange); color: var(--white);
  padding: 14px 32px; border-radius: 50px;
  font-weight: 700; font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(224,104,48,.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(224,104,48,.6); }
.btn-ghost {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.35);
  color: var(--white); padding: 14px 32px;
  border-radius: 50px; font-weight: 600; font-size: 1rem;
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.hero-visual {
  flex: 0 0 auto; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.phone-mockup {
  width: 240px; height: 480px;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 36px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: 20px 16px;
  backdrop-filter: blur(4px);
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  position: relative;
}
.phone-notch {
  width: 80px; height: 14px;
  background: rgba(255,255,255,.2);
  border-radius: 0 0 12px 12px; margin-bottom: 20px;
}
.phone-screen-item {
  width: 100%; background: rgba(255,255,255,.12);
  border-radius: 12px; padding: 12px; margin-bottom: 10px;
}
.phone-screen-item .bar {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.4); margin-bottom: 6px;
}
.phone-screen-item .bar.short { width: 60%; }
.phone-screen-item .bar.med { width: 80%; }
.phone-screen-item .bar.accent { background: #FFB347; width: 40%; }
.phone-icon-row {
  display: flex; gap: 8px; margin-bottom: 10px;
}
.phone-icon-chip {
  flex: 1; background: rgba(75,168,212,.3);
  border-radius: 10px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

/* ── SECTION COMMON ── */
section { padding: 80px 5%; }
.section-label {
  display: inline-block;
  background: rgba(30,58,110,.08);
  color: var(--navy); font-size: .8rem; font-weight: 700;
  padding: 6px 16px; border-radius: 50px;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900; color: var(--navy); margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 560px; margin-bottom: 56px;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--navy);
  padding: 36px 5%;
  display: flex; gap: 0; justify-content: space-around;
  flex-wrap: wrap;
}
.stat-item { text-align: center; padding: 12px 24px; }
.stat-item .num {
  font-size: 2.2rem; font-weight: 900; color: var(--white);
}
.stat-item .num span { color: var(--orange); }
.stat-item .label { font-size: .85rem; color: rgba(255,255,255,.65); }

/* ── FEATURES ── */
#features { background: var(--light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
}
.feature-card.c1::before { background: var(--orange); }
.feature-card.c2::before { background: var(--blue); }
.feature-card.c3::before { background: #5EE08A; }
.feature-card.c4::before { background: #FFB347; }
.feature-card.c5::before { background: #B87FE0; }
.feature-card.c6::before { background: #E05D8A; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(30,58,110,.16); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.bg-orange { background: rgba(224,104,48,.12); }
.bg-blue   { background: rgba(75,168,212,.12); }
.bg-green  { background: rgba(94,224,138,.12); }
.bg-amber  { background: rgba(255,179,71,.12); }
.bg-purple { background: rgba(184,127,224,.12); }
.bg-pink   { background: rgba(224,93,138,.12); }
.feature-card h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.feature-card p { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ── HOW IT WORKS ── */
#how { background: var(--white); }
.steps { display: flex; gap: 0; position: relative; flex-wrap: wrap; }
.steps::before {
  content: '';
  position: absolute; top: 36px; left: calc(16.67% - 0px);
  right: calc(16.67%); height: 2px;
  background: linear-gradient(to right, var(--orange), var(--blue));
}
.step {
  flex: 1; min-width: 180px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 20px;
  position: relative;
}
.step-num {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900; color: var(--white);
  margin-bottom: 20px; position: relative; z-index: 1;
}
.step:nth-child(1) .step-num { background: var(--orange); }
.step:nth-child(2) .step-num { background: #C05CC0; }
.step:nth-child(3) .step-num { background: var(--blue); }
.step h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step p  { font-size: .875rem; color: var(--muted); }

/* ── PRIVACY ── */
#privacy { background: var(--light); }
.privacy-content {
  max-width: 860px; margin-left: auto; margin-right: auto;
  background: var(--white); border-radius: var(--radius);
  padding: 48px 56px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.privacy-content h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy); margin: 28px 0 10px;
  display: flex; align-items: center; gap: 10px;
}
.privacy-content h3:first-child { margin-top: 0; }
.privacy-content h3 .icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(30,58,110,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.privacy-content p, .privacy-content li {
  font-size: .9rem; color: var(--muted); line-height: 1.8;
}
.privacy-content ul {
  list-style: none; padding: 0;
}
.privacy-content ul li { padding-left: 20px; position: relative; }
.privacy-content ul li::before {
  content: '▸'; position: absolute; left: 0;
  color: var(--blue); font-size: .8rem; top: 3px;
}
.privacy-updated {
  display: inline-block; margin-top: 28px;
  font-size: .8rem; color: var(--muted);
  background: var(--light); padding: 6px 14px; border-radius: 8px;
}
/* Bilingual policy blocks */
.privacy-content p { margin-bottom: 12px; }
.privacy-content p.en,
.privacy-content ul.en li {
  color: #8791a0; font-size: .85rem; line-height: 1.7;
}
.privacy-content ul.en { margin-bottom: 12px; }
.privacy-content ul { margin-bottom: 12px; }
.privacy-content .privacy-org {
  background: var(--light); border-left: 3px solid var(--orange);
  padding: 14px 18px; border-radius: 8px; color: var(--navy);
}
.privacy-content .privacy-contact {
  background: var(--light); padding: 18px 20px; border-radius: 12px;
  color: var(--text); font-size: .9rem; line-height: 1.9;
}
.privacy-content .privacy-contact a { color: var(--blue); font-weight: 600; }
.privacy-table {
  width: 100%; border-collapse: collapse; margin: 8px 0 12px;
  font-size: .88rem;
}
.privacy-table th, .privacy-table td {
  border: 1px solid var(--border); padding: 10px 14px;
  text-align: left; vertical-align: top; color: var(--text);
}
.privacy-table th { background: var(--light); color: var(--navy); font-weight: 700; }
.privacy-table .en { color: #8791a0; font-size: .82rem; }

/* ── CONTACT ── */
#contact { background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.4rem; font-weight: 700;
  color: var(--navy); margin-bottom: 16px;
}
.contact-info p { color: var(--muted); font-size: .95rem; margin-bottom: 32px; }
.contact-method {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 14px;
  border: 1px solid var(--border); margin-bottom: 14px;
  transition: box-shadow .2s;
}
.contact-method:hover { box-shadow: var(--shadow); }
.contact-method .cm-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-method .cm-label { font-size: .75rem; color: var(--muted); }
.contact-method .cm-value { font-size: .95rem; font-weight: 600; color: var(--navy); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: .9rem; font-family: inherit;
  color: var(--text); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(75,168,212,.15);
}
.form-group input.has-error,
.form-group textarea.has-error {
  border-color: #E05D8A;
}
.form-error { color: #E05D8A; font-size: .78rem; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  background: var(--navy); color: var(--white);
  border: none; padding: 14px 36px;
  border-radius: 50px; font-size: 1rem;
  font-weight: 700; cursor: pointer;
  font-family: inherit; align-self: flex-start;
  transition: background .2s, transform .2s;
}
.form-submit:hover { background: var(--orange); transform: translateY(-2px); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── FLASH ── */
.flash {
  padding: 14px 20px; border-radius: 12px;
  font-size: .9rem; font-weight: 500; margin-bottom: 20px;
}
.flash.success { background: rgba(94,224,138,.15); color: #1c7a3f; border: 1px solid rgba(94,224,138,.4); }
.flash.error   { background: rgba(224,93,138,.12); color: #b32b58; border: 1px solid rgba(224,93,138,.35); }

/* ── PAGE HEADER (sub pages) ── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5298 100%);
  color: var(--white); padding: 72px 5% 56px; text-align: center;
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 10px; }
.page-header p { opacity: .85; max-width: 620px; margin: 0 auto; }

/* ── 404 ── */
.notfound {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 16px;
}
.notfound .code { font-size: 5rem; font-weight: 900; color: var(--navy); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 56px 5% 32px;
}
.footer-top {
  display: flex; gap: 60px; flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 32px;
}
.footer-brand { flex: 1; min-width: 220px; }
.footer-brand .logo-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.footer-brand .logo-row svg { width: 44px; height: 44px; }
.footer-brand .logo-row span { font-size: 1.5rem; font-weight: 900; color: var(--white); }
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 260px; }
.footer-col { flex: 1; min-width: 150px; }
.footer-col h4 { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .875rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8rem; }
.footer-bottom p strong { color: var(--white); }
.store-badges { display: flex; gap: 10px; }
.badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 18px; border-radius: 10px;
  font-size: .8rem; color: var(--white); font-weight: 600;
  transition: background .2s;
}
.badge:hover { background: rgba(255,255,255,.2); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding: 60px 5% 50px; }
  .hero p { margin: 0 auto 32px; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  .steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .privacy-content { padding: 32px 24px; }
  .nav-links { display: none; }
}
