/* ============================================
   鼎融資產 - 銀行專業風格
   深藍 + 白 + 金
   ============================================ */

:root {
  --navy-900: #0a1b3d;
  --navy-800: #102350;
  --navy-700: #1a3268;
  --navy-600: #294480;
  --gold-500: #c9a253;
  --gold-400: #d9b76b;
  --gold-300: #e8cb8d;
  --line-green: #06c755;
  --line-green-dark: #04a847;
  --white: #ffffff;
  --off-white: #f7f6f1;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --shadow-sm: 0 2px 8px rgba(10, 27, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 27, 61, 0.1);
  --shadow-lg: 0 20px 60px rgba(10, 27, 61, 0.15);
  --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: 880px; }

/* ============================================ 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(10, 27, 61, 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);
  opacity: 0.5;
  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.25;
}
.blob-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--navy-600), transparent 60%);
  bottom: -200px; left: -150px;
  animation-delay: -10s;
  opacity: 0.4;
}
@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: 880px;
  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;
  position: relative;
  display: inline-block;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 44px;
  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;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.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: #050d22;
  color: rgba(255, 255, 255, 0.6);
  padding: 70px 0 30px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 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-links h4 {
  font-family: var(--font-serif);
  color: white;
  margin-bottom: 18px;
  font-size: 16px;
}
.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-400); }
.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-line {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  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;
  z-index: 99;
  transition: all 0.3s;
  animation: pulse-line 2.5s infinite;
}
.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 12px rgba(6, 199, 85, 0); }
}

/* ============================================ ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
  transition-delay: calc(var(--delay, 0) * 1ms);
}
.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-line { width: 56px; height: 56px; bottom: 16px; right: 16px; }
}
