@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-primary-50: #fbf4ec;
  --color-primary-100: #f5e6d3;
  --color-primary-200: #eac9a3;
  --color-primary-300: #dca872;
  --color-primary-400: #c4813f;
  --color-primary-500: #a6621e;
  --color-primary-600: #83430b;
  --color-primary-700: #6b3609;
  --color-primary-800: #522908;
  --color-primary-900: #3d1f07;
  --color-primary-950: #251305;

  --color-accent-400: #fbbf24;
  --color-accent-500: #f59e0b;
  --color-accent-600: #d97706;

  --color-coral-500: #ff5733;
  --color-coral-600: #e04422;

  --color-dark-900: #2a2118;
  --color-dark-950: #1a140d;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Gradient Text Utilities */
.text-gradient {
  background: linear-gradient(135deg, #83430b 0%, #a6621e 50%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-coral {
  background: linear-gradient(135deg, #83430b 0%, #e04422 50%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #d97706 0%, #a6621e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background Grids & Dots */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
}

.bg-grid-dark {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.bg-dot-pattern {
  background-size: 24px 24px;
  background-image: radial-gradient(rgba(59, 130, 246, 0.15) 1.5px, transparent 1.5px);
}

/* Ambient Glow Orbs */
.glow-indigo {
  filter: blur(80px);
  background: radial-gradient(circle, rgba(131, 67, 11, 0.25) 0%, rgba(131, 67, 11, 0) 70%);
}

.glow-cyan {
  filter: blur(80px);
  background: radial-gradient(circle, rgba(217, 119, 6, 0.25) 0%, rgba(217, 119, 6, 0) 70%);
}

.glow-coral {
  filter: blur(80px);
  background: radial-gradient(circle, rgba(255, 87, 51, 0.2) 0%, rgba(255, 87, 51, 0) 70%);
}

/* Soft glow behind the brand logo — kept matching the logo's own
   original color, independent of the navbar's blue treatment. */
.logo-glow {
  position: absolute;
  inset: -14px -18px;
  z-index: -1;
  border-radius: 9999px;
  background: radial-gradient(ellipse at center, rgba(180, 130, 80, 0.28) 0%, rgba(180, 130, 80, 0.14) 45%, rgba(180, 130, 80, 0) 75%);
  filter: blur(12px);
  pointer-events: none;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(243, 237, 228, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(220, 168, 114, 0.35);
}

/* Navbar-only glass — deliberately its own neutral/blue treatment,
   isolated from the site's main (brown) palette used everywhere else. */
.navbar-panel {
  background: rgba(235, 235, 240, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(76, 95, 240, 0.18);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3D Flip Card */
.flip-card {
  perspective: 1200px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 1.75rem;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Bento Card Hover Effects */
.bento-card {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(79, 70, 229, 0.12), 0 8px 16px -6px rgba(15, 23, 42, 0.06);
}

/* Shimmer Button */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 80%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.75s ease-in-out;
}

.btn-shimmer:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.animate-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Hero Growth Dashboard: bar chart grow-in */
@keyframes growBar {
  from { height: 4%; }
  to { height: var(--bar-h, 60%); }
}

.chart-bar {
  height: var(--bar-h, 60%);
  animation: growBar 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Hero Growth Dashboard: line chart draw-in */
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.chart-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawLine 1.6s ease-out 0.3s forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
