/* ==========================================================================
   MEROGOLD ULTRA-CLEAN FINTECH DESIGN SYSTEM
   Inspired by JustGold.app • Clean Modern Sans-Serif • High Contrast Navy & Gold
   Bento Grids • CSS Mobile Mockups • Ascending Visual Charts • Pure Whitespace
   ========================================================================== */

:root {
  --jg-bg: #FFFFFF;
  --jg-surface: #F8FAFC;
  --jg-surface-alt: #F1F5F9;
  --jg-surface-card: #FFFFFF;
  --jg-border: #E2E8F0;
  --jg-border-light: #F1F5F9;
  
  --jg-text-main: #0F172A;
  --jg-text-body: #475569;
  --jg-text-muted: #64748B;
  --jg-text-dim: #94A3B8;

  --jg-gold: #C9A227;
  --jg-gold-light: #FBF7EE;
  --jg-gold-accent: #D4AF37;
  --jg-gold-deep: #B8860B;
  --jg-gold-gradient: linear-gradient(135deg, #E6C875 0%, #C9A227 50%, #B8860B 100%);

  --jg-navy: #0A192F;
  --jg-navy-light: #1E293B;

  --jg-green: #10B981;
  --jg-green-bg: #ECFDF5;

  --jg-radius-sm: 8px;
  --jg-radius-md: 14px;
  --jg-radius-lg: 20px;
  --jg-radius-xl: 28px;
  --jg-radius-pill: 9999px;

  --jg-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --jg-shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --jg-shadow-lg: 0 12px 36px -6px rgba(15, 23, 42, 0.08);
}

/* Base Reset & Typography */
body {
  background-color: #FFFFFF !important;
  color: var(--jg-text-main) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* Container */
.jg-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 48px);
  box-sizing: border-box;
}

/* Section Spacing */
.jg-section {
  padding: clamp(64px, 7vw, 100px) 0;
  position: relative;
}

/* Clean Header */
.jg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--jg-border-light);
  transition: all 0.25s ease;
}
.jg-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.jg-nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.jg-nav-link:hover {
  color: var(--jg-text-main);
  background: var(--jg-surface);
}

/* Buttons */
.jg-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0F172A;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--jg-radius-pill);
  text-decoration: none;
  border: 1px solid #0F172A;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: all 0.2s ease;
}
.jg-btn-primary:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

.jg-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #E6C875 0%, #C9A227 50%, #B8860B 100%);
  color: #0F172A !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--jg-radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.25);
  transition: all 0.2s ease;
}
.jg-btn-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

.jg-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFFFF;
  color: #0F172A !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--jg-radius-pill);
  text-decoration: none;
  border: 1px solid var(--jg-border);
  cursor: pointer;
  transition: all 0.2s ease;
}
.jg-btn-secondary:hover {
  background: var(--jg-surface);
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

/* Eyebrow Pill */
.jg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--jg-radius-pill);
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.jg-pill-gold {
  background: #FEF9C3;
  border-color: #FEF08A;
  color: #854D0E;
}

/* Card Styles */
.jg-card {
  background: #FFFFFF;
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-radius-xl);
  box-shadow: var(--jg-shadow-md);
  transition: all 0.25s ease;
}
.jg-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--jg-shadow-lg);
}

.jg-card-soft {
  background: var(--jg-surface);
  border: 1px solid var(--jg-border-light);
  border-radius: var(--jg-radius-xl);
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-rows: 240px 240px;
  gap: 20px;
}
@media (max-width: 990px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}
@media (max-width: 680px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

/* Mobile Phone Mockup (Ultra Realistic CSS) */
.phone-mockup {
  width: 270px;
  height: 520px;
  background: #FFFFFF;
  border: 7px solid #0F172A;
  border-radius: 38px;
  box-shadow: 
    0 24px 60px -12px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(0,0,0,0.06),
    inset 0 0 0 2px #E2E8F0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  width: 80px;
  height: 18px;
  background: #0F172A;
  border-radius: 0 0 12px 12px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.phone-inner {
  padding: 26px 14px 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #FAFAFA;
  overflow: hidden;
}

/* Small phone card inside walkthrough */
.phone-screen-card {
  width: 100%;
  max-width: 260px;
  height: 380px;
  background: #FFFFFF;
  border: 4px solid #0F172A;
  border-radius: 28px;
  box-shadow: 0 14px 34px -6px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

/* Ascending SIP Chart Mockup */
.sip-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 200px;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 2px dashed #E2E8F0;
  position: relative;
}
.sip-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.sip-bar-gold {
  width: 100%;
  background: linear-gradient(180deg, #FDE047 0%, #EAB308 100%);
  border-radius: 6px 6px 0 0;
  transition: height 0.4s ease;
}
.sip-bar-gain {
  width: 100%;
  background: linear-gradient(180deg, #34D399 0%, #10B981 100%);
  border-radius: 6px 6px 0 0;
  transition: height 0.4s ease;
}

/* Dark Navy Ribbon Card */
.navy-ribbon {
  background: linear-gradient(135deg, #0A192F 0%, #0F172A 100%);
  border-radius: var(--jg-radius-xl);
  color: #FFFFFF;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 16px 44px -8px rgba(10, 25, 47, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Clean Accordion */
.jg-faq-item {
  border-bottom: 1px solid #E2E8F0;
  transition: all 0.2s ease;
}
.jg-faq-question {
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.jg-faq-question:hover {
  color: #C9A227;
}
.jg-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
}
.jg-faq-item.active .jg-faq-answer {
  max-height: 280px;
  padding-bottom: 20px;
}
.jg-faq-item.active .jg-faq-question svg {
  transform: rotate(180deg);
}

/* Tab Navigation */
.jg-tab-btn {
  padding: 10px 22px;
  border-radius: var(--jg-radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
}
.jg-tab-btn.active {
  background: #0F172A;
  color: #FFFFFF;
}

/* Modal Styles */
.valuation-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.valuation-modal-overlay.show {
  display: flex !important;
}
.valuation-modal-box {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  border: 1px solid #E2E8F0;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* Mobile Drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #FFFFFF;
  z-index: 1002;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer.active {
  transform: translateX(-320px);
}

/* Pipeline Step Nodes */
.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  flex: 1;
  min-width: 110px;
}
.pipeline-step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  color: #0F172A;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.25s ease;
}
.pipeline-step:hover .pipeline-step-num {
  background: #C9A227;
  color: #FFFFFF;
  border-color: #C9A227;
  transform: scale(1.08);
}

.header-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: #0F172A;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.header-menu-btn:hover {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #D97706;
}

@media (max-width: 1080px) {
  .hidden-mobile {
    display: none !important;
  }
}
