:root {
  --primary: #ff6a3d;
  --primary-dark: #e6532a;
  --primary-light: #fff1ea;
  --ink: #1a1d29;
  --ink-soft: #5a5f73;
  --bg: #ffffff;
  --bg-alt: #f7f7fb;
  --border: #ececf2;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(26, 29, 41, 0.25);
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 25px -8px rgba(255, 106, 61, 0.55);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light {
  background: #fff;
  color: var(--primary-dark);
}
.btn-light:hover { transform: translateY(-2px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #ffb199);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--primary); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--primary); }
.caret { font-size: 0.7rem; transition: transform .2s ease; }
.nav-dropdown.open .caret,
.nav-dropdown:hover .caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 160px;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-dropdown-menu a:hover { background: var(--bg-alt); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(60% 60% at 85% 10%, var(--primary-light) 0%, rgba(255,241,234,0) 70%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.25;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-sub {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0 0 32px;
  max-width: 46ch;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badges {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Hero visual - phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-frame {
  width: 260px;
  height: 520px;
  background: var(--ink);
  border-radius: 40px;
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 45%, #ffffff 45%);
  height: 100%;
  border-radius: 26px;
  padding: 40px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mock-card {
  background: rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 14px;
}
.mock-line {
  height: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.mock-line:last-child { margin-bottom: 0; }
.w-60 { width: 60%; }
.w-40 { width: 40%; }
.mock-number {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
}
.mock-bar-row {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 20px -12px rgba(0,0,0,0.2);
}
.mock-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary), #ffcbb3);
  border-radius: 6px;
}
.mock-btn {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}
.float-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.chip-1 { top: 12%; left: -6%; }
.chip-2 { bottom: 14%; right: -8%; }

/* Trust bar */
.trustbar {
  background: var(--ink);
  color: #fff;
}
.trustbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 24px;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}
.trust-item span {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

/* Section headings */
.section-eyebrow {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 12px;
}
.section-sub {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 40px;
}

/* Products */
.products { padding: 90px 0; background: var(--bg-alt); }
.products .section-title,
.products .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
.products > .container { text-align: center; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.product-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.product-icon svg { width: 26px; height: 26px; }
.product-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.product-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.88rem; }
.product-rate {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-rate span { font-size: 0.78rem; color: var(--ink-soft); }
.product-rate strong { font-size: 1rem; color: var(--primary-dark); font-weight: 800; }

/* Loan comparison table */
.comparison { padding: 90px 0; background: var(--ink); }
.comparison .section-eyebrow {
  color: var(--primary);
  background: rgba(255, 106, 61, 0.15);
  display: inline-block;
  text-align: center;
}
.comparison .section-title { color: #fff; text-align: center; margin-left: auto; margin-right: auto; }
.comparison .section-sub { color: rgba(255, 255, 255, 0.7); text-align: center; margin-left: auto; margin-right: auto; }
.comparison > .container { text-align: center; }
.compare-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}
.compare-table thead tr { background: var(--ink); }
.compare-table th {
  padding: 16px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.compare-table th:not(:first-child) { text-align: center; }
.compare-table td {
  padding: 16px 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}
.compare-table td:first-child { text-align: left; font-weight: 700; color: var(--ink); }
.compare-table td.monthly { font-weight: 800; color: var(--primary-dark); }
.compare-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.compare-table tbody tr + tr { border-top: 1px solid var(--border); }
.comparison-footer { text-align: center; margin-top: 32px; }
.comparison-footer p { color: rgba(255, 255, 255, 0.65); font-size: 0.85rem; margin: 0 0 18px; }

/* Success cases */
.cases { padding: 90px 0; }
.cases > .container { text-align: center; }
.cases .section-title,
.cases .section-sub { margin-left: auto; margin-right: auto; }

.case-filter { margin: 40px 0 8px; }
.case-filter-label { font-weight: 700; font-size: 0.9rem; margin: 0 0 14px; }
.case-filter-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.case-filter-btn {
  background: var(--bg-alt);
  color: var(--ink-soft);
  border: none;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.case-filter-btn:hover { background: var(--primary-light); color: var(--primary-dark); }
.case-filter-btn.active { background: var(--primary); color: #fff; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
  text-align: left;
}
.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.case-card.is-hidden { display: none; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-cover {
  height: 160px;
  overflow: hidden;
  background: var(--bg-alt);
}
.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-body { padding: 20px; }
.case-body h3 { margin: 0 0 2px; font-size: 1.05rem; }
.case-location { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.85rem; }
.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.case-type {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.case-type:hover { background: var(--primary); color: #fff; }
.case-amount { font-weight: 800; color: var(--ink); font-size: 0.95rem; }
.case-term { margin: 8px 0 12px; color: var(--ink-soft); font-size: 0.78rem; }
.case-story {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-share { display: flex; gap: 8px; margin-bottom: 12px; }
.case-share-btn {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}
.case-share-btn.fb { background: #1877f2; }
.case-share-btn.x { background: #14171a; }
.case-share-btn.line { background: #06c755; }
.case-toggle {
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  padding: 12px 0 0;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.case-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.case-details p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  background: var(--bg-alt);
  padding: 12px 14px;
  border-radius: 10px;
}
.case-details p strong { color: var(--ink); }

/* Success cases — list layout (dedicated cases page): image left, info right, stacked rows */
.cases-list .case-grid {
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.cases-list .case-card {
  display: flex;
  align-items: stretch;
}
.cases-list .case-cover {
  flex: 0 0 300px;
  height: auto;
}
.cases-list .case-body {
  flex: 1;
  padding: 28px 28px 24px;
  min-width: 0;
}
.cases-list .case-story {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

@media (max-width: 760px) {
  .cases-list .case-card { flex-direction: column; }
  .cases-list .case-cover { flex: 0 0 auto; height: 200px; }
}

/* Features */
.features { padding: 90px 0; }
.features .section-title,
.features .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
.features > .container { text-align: center; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: #fff;
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 12px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.emoji-icon { font-size: 1.5rem; }
.feature-card h3 { margin: 0 0 6px; font-size: 0.95rem; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 0.82rem; }

/* Reusable "view more" link under a homepage section */
.section-more { text-align: center; margin-top: 36px; }

/* Steps */
.steps { padding: 90px 0; background: var(--bg-alt); }
.steps .section-title,
.steps .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
.steps > .container { text-align: center; }
.step-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.step-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  border: 1px solid var(--border);
  text-align: center;
}
.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.step-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.step-connector {
  width: 32px;
  height: 2px;
  background: var(--border);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  padding: 60px 0;
  color: #fff;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin: 0 0 8px; font-size: 1.6rem; }
.cta-banner p { margin: 0; opacity: 0.9; }

/* FAQ */
.faq { padding: 90px 0; }
.faq > .container { text-align: center; }
.faq .section-title,
.faq .section-sub { margin-left: auto; margin-right: auto; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: none;
  padding: 20px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.faq-icon {
  color: var(--primary);
  font-size: 1.3rem;
  transition: transform .2s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  background: var(--bg-alt);
}
.faq-answer p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }
.footer-legal { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin: 0 0 4px; }
.footer-disclaimer {
  padding: 18px 24px 26px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}
.footer-disclaimer strong { color: rgba(255,255,255,0.7); }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin: 0 0 16px; }
.footer-col a { display: block; margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-bottom: 0;
}
.footer-bottom {
  padding: 22px 24px;
  font-size: 0.82rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: 1fr; }
  .step-connector { width: 2px; height: 24px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    display: none;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; }
  .nav-toggle { display: flex; }
  .nav-dropdown-toggle { width: 100%; padding: 10px 0; justify-content: space-between; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .header-actions .btn-primary { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-banner-inner { justify-content: center; text-align: center; }
}
