/* ============================================================
   JHI CAPITAL — Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Sora:wght@300;400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: var(--radius-full); }

/* ── Selection ── */
::selection { background: var(--accent-primary); color: white; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

.display-heading {
  font-family: var(--font-display);
  font-weight: 700;
}

p { color: var(--text-secondary); line-height: 1.75; }

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* ── Container ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Layout ── */
.section {
  padding: var(--section-padding) 0;
}
.section-sm { padding: 60px 0; }
.section-lg { padding: 128px 0; }

/* ── Section Label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}

/* ── Section Title ── */
.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
}

.text-center .section-subtitle { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all var(--transition-spring);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 20px rgba(26, 86, 219, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 86, 219, 0.45);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}
.btn-secondary:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--text-base);
}

.btn-sm {
  padding: 9px 20px;
  font-size: var(--text-xs);
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}
.badge-blue {
  background: var(--accent-light);
  color: var(--accent-primary);
  border: 1px solid var(--border-color);
}
.badge-gold {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--divider);
  margin: 0;
}

/* ── Grid Helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ── Accent Bar ── */
.accent-bar {
  width: 56px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.accent-bar-center { margin: 0 auto 24px; }

/* ── Stat Block ── */
.stat-block {
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Icon Box ── */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}
.icon-box-lg {
  width: 72px;
  height: 72px;
  font-size: 30px;
  border-radius: var(--radius-lg);
}
.icon-box img {
  filter: invert(30%) sepia(80%) saturate(400%) hue-rotate(200deg);

}
[data-theme="dark"] .icon-box img {
  filter: invert(60%) sepia(80%) saturate(400%) hue-rotate(200deg);
}

.social-icon img {
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.social-icon:hover img {
  opacity: 1;
}

.theme-toggle img {
  display: block;
  filter: invert(40%) sepia(20%) saturate(500%) hue-rotate(200deg);
  transition: filter var(--transition-fast);
}

[data-theme="dark"] .theme-toggle img {
  filter: invert(80%) sepia(20%) saturate(300%) hue-rotate(180deg);
}
/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideRight {
  from { transform: translateX(-40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fade-up {
  animation: fadeUp 0.7s var(--transition-slow) both;
}
.animate-fade-up-1 { animation-delay: 0.1s; }
.animate-fade-up-2 { animation-delay: 0.2s; }
.animate-fade-up-3 { animation-delay: 0.3s; }
.animate-fade-up-4 { animation-delay: 0.4s; }
.animate-fade-up-5 { animation-delay: 0.5s; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --section-padding: 72px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-padding: 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-title { font-size: var(--text-3xl); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn-lg { padding: 14px 28px; }
}
