/* ==========================================================================
   TEKABO GROUP - Apple HIG & Fluid Motion Architecture
   ========================================================================== */

:root {
  --tekabo-red: #D32F2F;
  --tekabo-red-hover: #B71C1C;
  --tekabo-gold: #C9A84C;
  --tekabo-gold-dark: #92721E;
  --tekabo-navy: #0A192F;
  --tekabo-charcoal: #111827;
  --tekabo-slate: #4B5563;
  --tekabo-canvas: #FBFBFD;
}

/* Base Smoothing */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #FBFBFD;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* iOS Widget Card Styling */
.hig-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  will-change: transform;
}

.hig-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.08), 0 6px 16px -2px rgba(0, 0, 0, 0.03);
}

/* 3D Tilt Card Container */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.25s ease;
  will-change: transform;
}

/* Scroll Reveal States */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delays for Staggered Grids */
.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

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

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

.animate-float-delayed {
  animation: floatSlow 6s ease-in-out infinite;
  animation-delay: 2.5s;
}

/* Range Slider */
input[type="range"].loan-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #E5E7EB;
  outline: none;
  cursor: pointer;
}

input[type="range"].loan-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #C9A84C;
  cursor: grab;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"].loan-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #B38E33;
}

input[type="range"].loan-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.25);
}

/* Input Fields */
.hig-input {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  color: #111827;
  border-radius: 0.75rem;
  transition: all 0.15s ease;
}

.hig-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}

/* Subtle Shimmer for High-Priority CTAs */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.btn-shimmer {
  background: linear-gradient(90deg, #111827 0%, #1F2937 50%, #111827 100%);
  background-size: 200% 100%;
  animation: shimmer 4s ease infinite;
}
