/* ============================================
   凱欣資產 - 深藍 + 金 專業風格
   ============================================ */

:root {
  --navy-900: #080f22;
  --navy-800: #0d1835;
  --navy-700: #16274d;
  --navy-600: #243d6a;
  --gold-500: #c9a253;
  --gold-400: #d9b76b;
  --gold-300: #e8cb8d;
  --line-green: #06c755;
  --line-green-dark: #04a847;
  --white: #ffffff;
  --off-white: #f5f6fa;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --shadow-sm: 0 2px 8px rgba(8, 15, 34, 0.08);
  --shadow-md: 0 8px 24px rgba(8, 15, 34, 0.12);
  --shadow-lg: 0 20px 60px rgba(8, 15, 34, 0.18);
  --shadow-gold: 0 10px 30px rgba(201, 162, 83, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-serif: 'Noto Serif TC', serif;
  --font-sans: 'Noto Sans TC', -apple-system, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  z-index: 100;
  border-bottom: 1px solid rgba(8,15,34,0.06);
  transition: all 0.3s;
}
.nav.scrolled { background: rgba(255,255,255,0.98); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); }
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400); border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 900; font-size: 20px;
  border: 1px solid var(--gold-500);
}
.logo-text { font-family: var(--font-serif); font-weight: 700; font-size: 20px; letter-spacing: 0.05em; }

/* ===== BUTTONS ===== */
.btn-line, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-family: var(--font-sans);
  border-radius: 999px; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap; cursor: pointer; border: none;
}
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-xl { padding: 22px 56px; font-size: 18px; }
.btn-line {
  background: linear-gradient(135deg, var(--line-green), var(--line-green-dark));
  color: white; box-shadow: 0 4px 14px rgba(6,199,85,0.4);
}
.btn-line:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(6,199,85,0.5); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--gold-400); color: var(--gold-400); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  color: white; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 100px 24px 80px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: float-blob 20s infinite ease-in-out;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold-500), transparent 60%);
  top: -100px; right: -100px; opacity: 0.22;
}
.blob-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--navy-600), transparent 60%);
  bottom: -200px; left: -150px; opacity: 0.4; animation-delay: -10s;
}
@keyframes float-blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-50px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(0.95); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-inner { position: relative; text-align: center; max-width: 920px; z-index: 2; }
.hero-tag {
  display: inline-block; font-size: 13px; letter-spacing: 0.4em;
  color: var(--gold-300); padding: 8px 24px;
  border: 1px solid var(--gold-500); border-radius: 999px;
  margin-bottom: 32px; font-weight: 500;
}
.hero-title {
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(40px, 7vw, 84px); line-height: 1.15;
  letter-spacing: 0.02em; margin-bottom: 28px;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 19px); color: rgba(255,255,255,0.85);
  margin-bottom: 36px; font-weight: 300; letter-spacing: 0.02em;
}
.hero-sub-small { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--gold-300); letter-spacing: 0.2em; }

/* 月付試算卡片 */
.calc-card {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 20px 36px; margin-bottom: 36px; text-align: center;
}
.calc-label { font-size: 12px; color: var(--gold-300); letter-spacing: 0.3em; margin-bottom: 10px; font-weight: 600; }
.calc-numbers { display: flex; align-items: center; justify-content: center; gap: 18px; }
.calc-before { font-size: 1.4rem; color: rgba(255,255,255,0.35); text-decoration: line-through; font-family: var(--font-serif); font-weight: 700; }
.calc-arrow { font-size: 1.5rem; color: var(--gold-400); }
.calc-after { font-size: 2.4rem; font-weight: 900; color: var(--gold-300); font-family: var(--font-serif); }
.calc-unit { font-size: 0.85rem; color: var(--gold-400); margin-left: 2px; }
.calc-note { margin-top: 8px; font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; }

.hero-cta {
  display: flex; justify-content: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 40px;
}
.trust-tags { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.tag { color: rgba(255,255,255,0.7); letter-spacing: 0.05em; }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 2px solid rgba(255,255,255,0.3);
  border-radius: 999px; z-index: 2;
}
.scroll-hint span {
  display: block; width: 4px; height: 8px;
  background: var(--gold-400); border-radius: 2px; margin: 6px auto;
  animation: scroll-down 2s infinite;
}
@keyframes scroll-down {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

/* ===== TRUST STRIP ===== */
.trust-strip { background: var(--off-white); padding: 60px 24px; border-bottom: 1px solid var(--gray-200); }
.trust-strip-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 20px; align-items: center;
}
.trust-item { text-align: center; }
.trust-item .num { font-family: var(--font-serif); font-size: clamp(36px,5vw,54px); font-weight: 900; color: var(--navy-800); line-height: 1; margin-bottom: 6px; }
.trust-item .lbl { font-size: 13px; color: var(--gray-600); letter-spacing: 0.15em; }
.trust-divider { width: 1px; height: 50px; background: var(--gray-200); }

/* ===== SECTION COMMON ===== */
section { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-tag { display: inline-block; font-size: 12px; letter-spacing: 0.4em; color: var(--gold-500); font-weight: 600; margin-bottom: 16px; }
.section-tag.light { color: var(--gold-300); }
.section-title { font-family: var(--font-serif); font-size: clamp(28px,4vw,44px); color: var(--navy-900); margin-bottom: 16px; font-weight: 700; letter-spacing: 0.02em; }
.section-title.light { color: white; }
.section-sub { color: var(--gray-600); font-size: 15px; }
.section-sub.light { color: rgba(255,255,255,0.7); }

/* ===== SERVICES ===== */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 28px; }
.service-card {
  background: white; padding: 40px 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy-800), var(--gold-500));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-md); display: grid; place-items: center;
  color: var(--gold-400); margin-bottom: 24px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-family: var(--font-serif); font-size: 22px; color: var(--navy-900); margin-bottom: 12px; font-weight: 700; }
.service-card p { color: var(--gray-600); font-size: 15px; line-height: 1.8; }

/* ===== WHY ===== */
.why {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: white; position: relative; overflow: hidden;
}
.why::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,162,83,0.1), transparent 70%);
  top: -200px; right: -200px; filter: blur(40px);
}
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; position: relative; }
.why-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  padding: 36px 30px; border-radius: var(--radius-md); backdrop-filter: blur(10px);
  transition: all 0.4s;
}
.why-card:hover { background: rgba(255,255,255,0.06); border-color: var(--gold-500); transform: translateY(-6px); }
.why-num { font-family: var(--font-serif); font-size: 48px; font-weight: 900; background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 20px; }
.why-card h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 12px; font-weight: 700; }
.why-card p { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.8; }

/* ===== PROCESS ===== */
.process { background: var(--off-white); }
.process-timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.process-line { position: absolute; left: 35px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--gold-500), var(--gold-300)); opacity: 0.4; }
.process-step { display: flex; align-items: center; gap: 28px; padding: 20px 0; position: relative; }
.step-num {
  flex-shrink: 0; width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400); border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 28px; font-weight: 900;
  border: 2px solid var(--gold-500); box-shadow: var(--shadow-md); position: relative; z-index: 1;
}
.step-content {
  flex: 1; background: white; padding: 24px 32px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200); transition: all 0.3s;
}
.process-step:hover .step-content { transform: translateX(8px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.step-content h3 { font-family: var(--font-serif); font-size: 20px; color: var(--navy-900); margin-bottom: 4px; }
.step-content p { color: var(--gray-600); font-size: 14px; }

/* ===== FAQ ===== */
.faq { background: var(--white); }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--off-white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gray-200); transition: all 0.3s; }
.faq-item.open { background: white; border-color: var(--gold-300); box-shadow: var(--shadow-md); }
.faq-q { width: 100%; padding: 24px 28px; background: none; border: none; text-align: left; font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--navy-900); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-icon { font-size: 24px; color: var(--gold-500); font-weight: 300; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 28px 24px; color: var(--gray-600); font-size: 15px; }

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: white; position: relative; overflow: hidden; text-align: center; }
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-blob { position: absolute; width: 700px; height: 700px; background: radial-gradient(circle, rgba(201,162,83,0.18), transparent 60%); top: 50%; left: 50%; transform: translate(-50%,-50%); filter: blur(60px); animation: float-blob 15s infinite ease-in-out; }
.cta-inner { position: relative; z-index: 2; }
.cta-title { font-family: var(--font-serif); font-size: clamp(28px,4vw,48px); margin: 16px 0 20px; font-weight: 700; letter-spacing: 0.02em; }
.cta-sub { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 40px; line-height: 1.9; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.cta-note { font-size: 13px; color: var(--gold-300); letter-spacing: 0.15em; }

/* ===== FOOTER ===== */
.footer { background: #04091a; color: rgba(255,255,255,0.6); padding: 70px 0 30px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: 14px; line-height: 1.9; color: rgba(255,255,255,0.5); }
.footer-bottom { padding-top: 30px; }
.disclaimer { background: rgba(255,255,255,0.03); padding: 26px 28px; border-radius: var(--radius-md); margin-bottom: 24px; border-left: 3px solid var(--gold-500); }
.disclaimer strong { color: var(--gold-400); display: block; margin-bottom: 12px; font-size: 14px; letter-spacing: 0.1em; }
.disclaimer p { font-size: 12px; line-height: 1.9; color: rgba(255,255,255,0.45); }
.copyright { text-align: center; font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; }

/* ===== FLOAT LINE BUTTON ===== */
.float-wrap { position: fixed; bottom: 24px; right: 24px; display: flex; align-items: center; gap: 10px; z-index: 99; }
.float-label { background: rgba(0,0,0,0.72); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; padding: 6px 14px; border-radius: 20px; white-space: nowrap; animation: label-blink 2s ease-in-out infinite; pointer-events: none; }
@keyframes label-blink { 0%,100%{opacity:1;transform:translateX(0);} 50%{opacity:0.65;transform:translateX(-3px);} }
.float-line { width: 72px; height: 72px; background: linear-gradient(135deg, var(--line-green), var(--line-green-dark)); color: white; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(6,199,85,0.45); text-decoration: none; transition: all 0.3s; animation: pulse-line 2.5s infinite; flex-shrink: 0; }
.float-line:hover { transform: scale(1.1); }
@keyframes pulse-line { 0%,100%{box-shadow:0 8px 24px rgba(6,199,85,0.45);} 50%{box-shadow:0 8px 24px rgba(6,199,85,0.45),0 0 0 14px rgba(6,199,85,0);} }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 70px 0; }
  .hero { min-height: auto; padding: 120px 20px 60px; }
  .trust-strip-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .trust-divider { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .process-step { gap: 16px; }
  .step-num { width: 56px; height: 56px; font-size: 22px; }
  .process-line { left: 27px; }
  .step-content { padding: 18px 22px; }
  .btn-xl { padding: 18px 36px; font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta a { width: 100%; max-width: 320px; justify-content: center; }
  .float-wrap { bottom: 16px; right: 16px; }
  .float-line { width: 62px; height: 62px; }
  .float-label { font-size: 12px; padding: 5px 11px; }
  .calc-numbers { gap: 12px; }
  .calc-after { font-size: 1.8rem; }
}
