/* Fonts loaded via <link> in HTML head */

/* ===== TIFFINTIN LANDING — AllianceFin ===== */
:root {
  --primary: #150e28;
  --primary-light: #1e1640;
  --secondary: #7c3aed;
  --secondary-dark: #6d28d9;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --text: #1c1433;
  --text-muted: #6b5f8a;
  --bg-light: #f5f3ff;
  --border: #c4b5fd;
  --card-bg: #fff;
  --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--secondary-dark); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,.75); font-size: .85rem; padding: 6px 10px;
  border-radius: 6px; transition: background .2s, color .2s; white-space: nowrap;
}
.site-nav a:hover { background: rgba(124,58,237,.35); color: #fff; }
.btn-header {
  background: var(--secondary); color: #fff; font-size: .85rem; font-weight: 700;
  padding: 9px 20px; border-radius: 8px; white-space: nowrap;
  border: none; cursor: pointer; transition: background .2s;
}
.btn-header:hover { background: var(--secondary-dark); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d1b5e 100%);
  color: #fff; padding: 72px 0 60px;
}
.hero-inner { max-width: 860px; }
.hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.55rem); font-weight: 800; line-height: 1.25; margin-bottom: 20px; }
.hero-lead { font-size: 1.08rem; color: rgba(255,255,255,.82); margin-bottom: 32px; max-width: 700px; }
.btn-primary {
  display: inline-block; background: var(--accent); color: var(--primary);
  font-weight: 700; font-size: 1rem; padding: 14px 36px; border-radius: 10px;
  border: none; cursor: pointer; transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ===== FEATURE STRIP ===== */
.feature-strip {
  background: var(--primary-light);
  border-bottom: 1px solid rgba(124,58,237,.3);
}
.feature-strip .container {
  display: flex; gap: 0; flex-wrap: wrap;
}
.feature-item {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(124,58,237,.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-item h3 { color: #fff; font-size: .9rem; font-weight: 700; }
.feature-item p { color: rgba(255,255,255,.6); font-size: .78rem; margin-top: 2px; }

/* ===== SECTIONS ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-light); }
.section-dark {
  background: linear-gradient(135deg, var(--primary) 0%, #2d1b5e 100%);
  color: #fff;
}
.section-dark h2 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.82); }

.section h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 800; margin-bottom: 20px; color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 3px solid var(--secondary);
  display: inline-block;
}
.section p { margin-bottom: 16px; max-width: 820px; }
.section ul, .section ol { padding-left: 22px; margin-bottom: 16px; max-width: 820px; }
.section li { margin-bottom: 10px; }

/* ===== CALLOUT ===== */
.callout {
  border-left: 4px solid var(--accent);
  background: rgba(245,158,11,.08);
  padding: 16px 20px; border-radius: 0 8px 8px 0;
  margin: 24px 0; max-width: 820px;
}
.callout p { margin: 0; font-size: .97rem; }

/* ===== ICON GRID ===== */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 32px;
}
.icon-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 20px;
  transition: box-shadow .2s, transform .2s;
}
.icon-card:hover { box-shadow: 0 6px 24px rgba(124,58,237,.12); transform: translateY(-3px); }
.icon-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.icon-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.icon-card p { font-size: .87rem; color: var(--text-muted); margin: 0; }

/* ===== AUTHORITY GRID ===== */
.authority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 32px;
}
.authority-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(124,58,237,.4);
  border-radius: 12px; padding: 20px 18px;
  text-align: center;
}
.authority-card .a-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(124,58,237,.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.authority-card h3 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.authority-card p { color: rgba(255,255,255,.65); font-size: .8rem; margin: 0; }

/* ===== WARN GRID ===== */
.warn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 28px;
}
.warn-card {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 12px; padding: 20px 18px;
  display: flex; gap: 14px; align-items: flex-start;
}
.warn-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(239,68,68,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.warn-card h3 { font-size: .9rem; font-weight: 700; color: #c0392b; margin-bottom: 4px; }
.warn-card p { font-size: .82rem; color: var(--text-muted); margin: 0; }

/* ===== EVIDENCE GRID ===== */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin-top: 28px;
}
.evidence-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-top: 3px solid var(--secondary);
  border-radius: 12px; padding: 22px 18px;
}
.evidence-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.evidence-card p { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ===== WHY GRID ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 32px;
}
.why-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 20px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: box-shadow .2s, transform .2s;
}
.why-card:hover { box-shadow: 0 6px 24px rgba(124,58,237,.12); transform: translateY(-3px); }
.why-num {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--secondary); color: #fff;
  font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 5px; color: var(--primary); }
.why-card p { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ===== REVIEWS ===== */
.reviews-section { padding: 64px 0; background: var(--bg-light); }
.reviews-section h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 800; color: var(--primary);
  border-bottom: 3px solid var(--secondary);
  display: inline-block; padding-bottom: 10px; margin-bottom: 36px;
}
.carousel { position: relative; overflow: hidden; }
.carousel-track {
  display: flex; transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.review-card {
  flex: 0 0 100%; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 28px 24px; box-shadow: 0 2px 16px rgba(124,58,237,.06);
}
.review-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 6px; }
.review-author { font-weight: 700; color: var(--primary); font-size: 1rem; }
.review-date { font-size: .82rem; color: var(--text-muted); }
.review-stars { color: var(--accent); font-size: 1rem; letter-spacing: 1px; }
.review-text { color: var(--text); font-size: .93rem; line-height: 1.7; font-style: italic; }
.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 22px;
}
.carousel-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--secondary); background: transparent;
  color: var(--secondary); font-size: 1.1rem;
  cursor: pointer; transition: background .2s, color .2s;
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: var(--secondary); color: #fff; }
.carousel-dots { display: flex; gap: 7px; }
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: background .2s, transform .2s;
}
.dot.active { background: var(--secondary); transform: scale(1.3); }

/* ===== FAQ ===== */
.faq-list { margin-top: 28px; }
details {
  border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 10px; overflow: hidden;
}
details summary {
  padding: 16px 20px; font-weight: 700; font-size: .97rem;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; background: var(--card-bg); color: var(--primary);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+'; font-size: 1.3rem; color: var(--secondary);
  flex-shrink: 0; transition: transform .25s;
}
details[open] summary::after { transform: rotate(45deg); }
details .faq-body { padding: 0 20px 18px; background: var(--card-bg); font-size: .93rem; color: var(--text); }

/* ===== CTA FORM ===== */
.cta-section { padding: 56px 0; background: var(--bg-light); }
.cta-section.dark {
  background: linear-gradient(135deg, var(--primary) 0%, #2d1b5e 100%);
}
.cta-box {
  max-width: 560px; margin: 0 auto;
  background: var(--card-bg); border-radius: 16px;
  padding: 36px 40px; box-shadow: 0 6px 32px rgba(21,14,40,.12);
  text-align: center;
}
.cta-section.dark .cta-box {
  background: rgba(255,255,255,.06);
  box-shadow: none; border: 1px solid rgba(124,58,237,.35);
}
.cta-box h2 {
  font-size: 1.35rem; font-weight: 800; color: var(--primary);
  border: none; margin-bottom: 6px; padding: 0; display: block;
}
.cta-section.dark .cta-box h2 { color: #fff; }
.cta-box .sub { font-size: .9rem; color: var(--text-muted); margin-bottom: 24px; }
.cta-section.dark .cta-box .sub { color: rgba(255,255,255,.65); }
.cta-form { display: flex; flex-direction: column; gap: 12px; }
.cta-form input, .cta-form textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: .95rem; color: var(--text);
  background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cta-form input:focus, .cta-form textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(124,58,237,.18), 0 2px 8px rgba(0,0,0,.06); }
.cta-form textarea { min-height: 90px; resize: vertical; }
.cta-form .btn-submit {
  width: 100%; padding: 13px; background: var(--secondary);
  color: #fff; font-weight: 700; font-size: 1rem;
  border: none; border-radius: 28px; cursor: pointer;
  transition: background .2s, transform .15s;
}
.cta-form .btn-submit:hover { background: var(--secondary-dark); transform: translateY(-1px); }
.form-note { font-size: .76rem; color: var(--text-muted); margin-top: 6px; }
.form-success { display: none; padding: 16px; background: rgba(16,185,129,.1); border: 1px solid #10b981; border-radius: 8px; color: #065f46; font-weight: 600; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(21,14,40,.7); align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; padding: 36px 32px;
  width: 100%; max-width: 480px; position: relative;
  box-shadow: 0 16px 56px rgba(0,0,0,.3);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; font-size: 1.4rem;
  cursor: pointer; color: var(--text-muted); line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal h2 { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.modal .sub { font-size: .88rem; color: var(--text-muted); margin-bottom: 20px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--primary); color: rgba(255,255,255,.7); padding: 48px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.footer-col p, .footer-col address { font-size: .85rem; line-height: 1.6; font-style: normal; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .85rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px; text-align: center; font-size: .82rem;
}
.footer-bottom a { color: rgba(255,255,255,.55); margin: 0 8px; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== POLICY PAGES ===== */
.policy-page { max-width: 820px; margin: 0 auto; padding: 48px 20px 80px; }
.policy-page h1 { font-size: 1.7rem; font-weight: 800; color: var(--primary); margin-bottom: 28px; }
.policy-page h2 { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin: 28px 0 10px; }
.policy-page p { margin-bottom: 14px; font-size: .95rem; line-height: 1.75; }
.policy-page ul, .policy-page ol { padding-left: 20px; margin-bottom: 14px; }
.policy-page li { margin-bottom: 8px; font-size: .95rem; line-height: 1.7; }
.back-link { display: inline-block; color: var(--secondary); font-weight: 600; margin-bottom: 28px; }
.back-link:hover { color: var(--secondary-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .site-nav { display: none; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-box { padding: 28px 20px; }
  .feature-strip .container { flex-direction: column; }
  .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 14px 20px; }
  .feature-item:last-child { border-bottom: none; }
  .why-grid { grid-template-columns: 1fr; }
  .authority-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== PHOTO ILLUSTRATIONS ===== */
.section-photo{margin:36px auto;max-width:720px;border-radius:14px;overflow:hidden;line-height:0;transform:rotate(-1.5deg);box-shadow:0 12px 40px rgba(0,0,0,.22);transition:transform .4s,box-shadow .4s}
.section-photo:hover{transform:rotate(0) scale(1.02);box-shadow:0 18px 52px rgba(0,0,0,.32)}
.section-photo--right{transform:rotate(1.5deg)}
.section-photo--right:hover{transform:rotate(0) scale(1.02)}
.section-photo img{width:100%;height:auto;display:block;object-fit:cover}

/* ===== FONT PERSONALITY: Poppins uppercase section headings ===== */
.section h2{text-transform:uppercase;letter-spacing:.04em;font-size:clamp(1.1rem,2.2vw,1.55rem)}
h1{letter-spacing:-.01em}

/* ===== SCROLL REVEAL ===== */
.reveal{opacity:0;transform:translateY(32px);transition:opacity .65s ease,transform .65s ease}
.reveal.visible{opacity:1;transform:none}
.reveal-delay-1{transition-delay:.1s}.reveal-delay-2{transition-delay:.2s}
.reveal-delay-3{transition-delay:.3s}.reveal-delay-4{transition-delay:.4s}
.stagger-children>*{opacity:0;transform:translateY(20px);transition:opacity .5s ease,transform .5s ease}
.stagger-children.visible>*:nth-child(1){opacity:1;transform:none;transition-delay:.05s}
.stagger-children.visible>*:nth-child(2){opacity:1;transform:none;transition-delay:.15s}
.stagger-children.visible>*:nth-child(3){opacity:1;transform:none;transition-delay:.25s}
.stagger-children.visible>*:nth-child(4){opacity:1;transform:none;transition-delay:.35s}
.stagger-children.visible>*:nth-child(5){opacity:1;transform:none;transition-delay:.45s}
.stagger-children.visible>*:nth-child(6){opacity:1;transform:none;transition-delay:.55s}

/* ===== ANIMATED HERO GRADIENT ===== */
@keyframes heroGradientShift{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.hero{background:linear-gradient(135deg,#150e28,#2d1b5e,#1a0f3c,#3b1f7a);background-size:300% 300%;animation:heroGradientShift 10s ease infinite}

/* ===== SCROLL PROGRESS ===== */
#scroll-progress{position:fixed;top:0;left:0;height:3px;background:var(--secondary);width:0%;z-index:9999;transition:width .1s linear}

/* ===== PULSE BADGE ===== */
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(124,58,237,.4)}70%{box-shadow:0 0 0 10px rgba(124,58,237,0)}}
.btn-header{animation:pulse 2.5s infinite}

/* ===== LAYOUT ENHANCEMENTS ===== */
.hero{background:linear-gradient(135deg,rgba(21,14,40,.88) 0%,rgba(45,27,94,.82) 100%),url('nick-chong-N__BnvQ_w18-unsplash.jpg') center/cover no-repeat;animation:none}
.logo__img{height:46px;width:auto;display:block;-webkit-mask-image:radial-gradient(ellipse 90% 80% at center,black 52%,transparent 100%);mask-image:radial-gradient(ellipse 90% 80% at center,black 52%,transparent 100%)}
.footer__logo-img{height:40px;width:auto;display:block;margin-bottom:12px;opacity:.85}
.split-sec{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center;margin:32px 0}
.media-frame{border-radius:12px;overflow:hidden;border:2px solid rgba(124,58,237,.3);box-shadow:0 20px 56px rgba(21,14,40,.35)}
.media-frame img{width:100%;display:block;object-fit:cover;aspect-ratio:4/3;transition:transform .45s ease}
.media-frame:hover img{transform:scale(1.04)}
.section-dark .media-frame{border-color:rgba(124,58,237,.55);box-shadow:0 20px 56px rgba(0,0,0,.5)}
@media(max-width:900px){.split-sec{grid-template-columns:1fr;gap:28px}}
.section-dark h2{color:#fff;border-bottom-color:var(--secondary)}
