/* Aliff Capital - Main Stylesheet */
/* Following design_guidelines.md for conversion-optimized B2B platform */

/* ===== CSS Variables (Design System) ===== */
:root {
  /* Brand Colors */
  --gold-primary: hsl(43, 62%, 60%);
  --gold-dark: hsl(43, 62%, 48%);
  --gold-light: hsl(45, 75%, 70%);
  --victory-green: hsl(142, 76%, 46%);
  --victory-dark: hsl(142, 84%, 40%);
  --urgency-red: hsl(0, 72%, 59%);
  --navy: hsl(215, 28%, 17%);
  --navy-dark: hsl(215, 28%, 12%);
  --navy-light: hsl(215, 28%, 25%);
  --charcoal: hsl(215, 19%, 27%);
  
  /* Neutrals */
  --background: hsl(210, 40%, 98%);
  --white: hsl(0, 0%, 100%);
  --border: hsl(210, 6%, 88%);
  --muted: hsl(210, 12%, 90%);
  --muted-foreground: hsl(215, 15%, 35%);
  --text-secondary: hsl(215, 16%, 47%);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--background);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.text-gold {
  color: var(--gold-primary);
}

.text-victory {
  color: var(--victory-green);
}

.text-urgency {
  color: var(--urgency-red);
}

.text-muted {
  color: var(--muted-foreground);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 8rem 0;
  }
}

/* ===== Grid System ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1023px) {
  .grid-cols-3, .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== Buttons (Conversion-Optimized) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: none;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(200, 157, 92, 0.4);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(200, 157, 92, 0.6);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
  color: var(--white);
}

.btn-urgency {
  background: var(--urgency-red);
  color: var(--white);
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn-lg {
  padding: 1.5rem 3rem;
  font-size: 1.25rem;
}

.btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ===== Cards (3D Depth) ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border: 2px solid var(--gold-primary);
}

/* ===== Glass Morphism ===== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) brightness(1.1);
  border: 1px solid rgba(200, 157, 92, 0.25);
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 32px rgba(200, 157, 92, 0.3);
}

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-success {
  background: var(--victory-green);
  color: var(--white);
}

.badge-gold {
  background: var(--gold-primary);
  color: var(--white);
}

.badge-outline {
  background: transparent;
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary);
}

/* ===== Animations ===== */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(200, 157, 92, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(200, 157, 92, 0.6);
  }
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.5s ease-out;
}

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

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.bg-navy { background-color: var(--navy); }
.bg-gold { background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%); }
.bg-white { background-color: var(--white); }

.text-white { color: var(--white); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
