/* ============================================
   ALLEN GUAN · INVESTMENT ADVISOR
   Light Theme — Blue & White
   ============================================ */

:root {
  --blue:       #1a3a8f;
  --blue-dark:  #102060;
  --blue-hero:  #1e4db7;
  --orange:     #e05c1a;
  --orange-hov: #c44e10;
  --white:      #ffffff;
  --off-white:  #f5f7fb;
  --text:       #1a1a2e;
  --text-mid:   #3a4a6a;
  --text-light: #6a7a9a;
  --border:     #dde3ef;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(26,58,143,0.07);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-avatar {
  width: 42px; height: 42px;
  background: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
}
.nav-brand-sub {
  font-size: 11px;
  color: var(--text-light);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link-enoch {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s;
}
.nav-link-enoch:hover { color: var(--orange); }
.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  color: var(--text);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 28px 16px;
}
.nav-mobile a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ── BUTTONS ── */
.btn-orange {
  display: inline-block;
  padding: 14px 30px;
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}
.btn-orange:hover { background: var(--orange-hov); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  padding: 14px 30px;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 6px;
  transition: all 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: white; }

.btn-blue {
  display: inline-block;
  padding: 13px 28px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  background: linear-gradient(130deg, var(--blue-dark) 0%, var(--blue-hero) 60%, #2563c4 100%);
  padding: 80px 28px 90px;
  color: var(--white);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--white);
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 36px;
  backdrop-filter: blur(8px);
}
.hero-card-name {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}
.hero-card-title {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
  font-weight: 400;
  line-height: 1.5;
}
.hero-card-contacts { display: flex; flex-direction: column; gap: 14px; }
.hero-contact-item { display: flex; flex-direction: column; gap: 2px; }
.hero-contact-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hero-contact-val {
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
}
a.hero-contact-val:hover { color: #ffd580; }
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
}

/* ── SECTION COMMON ── */
.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-sub {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ── PHILOSOPHY PILLARS ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  padding: 28px 24px;
}
.pillar-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: 12px;
}
.pillar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.pillar-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .pillars { grid-template-columns: 1fr; } }

/* ── PRODUCT GRID (homepage) ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: box-shadow 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(26,58,143,0.12);
  transform: translateY(-3px);
}
.product-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}
.product-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
}
.product-arrow {
  margin-top: 20px;
  font-size: 18px;
  color: var(--blue);
  font-weight: 600;
  transition: transform 0.2s;
}
.product-card:hover .product-arrow { transform: translateX(5px); }
.products-cta { text-align: center; }
@media (max-width: 800px) { .product-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .product-grid { grid-template-columns: 1fr; } }

/* ── CONTACT STRIP ── */
.contact-strip {
  background: var(--blue-dark);
  padding: 64px 28px;
  color: var(--white);
}
.contact-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.contact-strip h2 {
  font-size: clamp(26px,3vw,36px);
  font-weight: 800;
  margin-bottom: 10px;
}
.contact-strip p { color: rgba(255,255,255,0.7); font-size: 15px; }
.contact-strip-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.contact-detail { text-align: right; }
.contact-detail-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;
}
.contact-detail-val { font-size: 16px; font-weight: 600; color: var(--white); }
a.contact-detail-val:hover { color: #ffd580; }
@media (max-width: 700px) {
  .contact-strip-inner { grid-template-columns: 1fr; }
  .contact-strip-actions { align-items: flex-start; }
  .contact-detail { text-align: left; }
}

/* ── PRODUCT DETAIL PAGE ── */
.page-hero {
  background: linear-gradient(130deg, var(--blue-dark) 0%, var(--blue-hero) 100%);
  padding: 80px 28px 64px;
  color: var(--white);
  text-align: center;
}
.page-hero-eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.page-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

.product-detail { padding: 64px 0; border-bottom: 1px solid var(--border); }
.product-detail:last-of-type { border-bottom: none; }
.product-detail-header {
  display: flex; align-items: flex-start; gap: 20px; margin-bottom: 32px;
}
.product-detail-num {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--orange);
  background: #fff3ec; border-radius: 4px;
  padding: 4px 10px; white-space: nowrap;
}
.product-detail-title {
  font-size: clamp(24px,3vw,34px);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.product-detail-tag {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light);
}
.product-detail-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px; align-items: start;
}
.product-detail-desc p { font-size: 15px; color: var(--text-mid); line-height: 1.85; }
.product-features { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.feature-dot {
  width: 6px; height: 6px;
  background: var(--orange); border-radius: 50%; flex-shrink: 0;
}
.product-meta {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  position: sticky; top: 80px;
}
.meta-item {
  display: flex; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  gap: 12px;
}
.meta-item:last-of-type { border-bottom: none; }
.meta-label { font-size: 11px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.1em; }
.meta-val { font-size: 13px; font-weight: 600; color: var(--blue-dark); text-align: right; }
.meta-cta { margin-top: 20px; }
.meta-cta .btn-orange { width: 100%; text-align: center; display: block; }
@media (max-width: 800px) {
  .product-detail-body { grid-template-columns: 1fr; }
  .product-meta { position: static; }
}

/* ── DISCLAIMER ── */
.disclaimer-box {
  background: #f0f4ff;
  border: 1px solid #c8d4f0;
  border-radius: 8px;
  padding: 24px 28px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.8;
}
.disclaimer-box strong { color: var(--text-mid); }

/* ── INSIGHT PAGE ── */
.insight-intro {
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.85;
}
.insight-app-wrapper { display: flex; justify-content: center; }

/* ── FOOTER ── */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand-name { font-size: 18px; font-weight: 700; color: var(--white); }
.footer-brand-sub { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-disclaimer {
  font-size: 11px; color: rgba(255,255,255,0.35);
  line-height: 1.8; border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; margin-bottom: 12px;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
