@import "tailwindcss" source(none);
@source "../src";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));

@theme inline {
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 16px);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-gold: var(--gold);
  --color-navy: var(--navy);
  --color-surface: var(--surface);
  --color-surface-elevated: var(--surface-elevated);
  --font-display: "Space Grotesk", system-ui, sans-serif;

  --animate-fade-in: fade-in 0.7s ease-out both;
  --animate-fade-up: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  --animate-scale-in: scale-in 0.5s ease-out both;
  --animate-float: float 6s ease-in-out infinite;
  --animate-marquee: marquee 30s linear infinite;
  --animate-shimmer: shimmer 2.5s linear infinite;
  --animate-pulse-glow: pulse-glow 2.5s ease-in-out infinite;

  @keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: translateY(0) } }
  @keyframes scale-in { from { opacity: 0; transform: scale(0.92) } to { opacity: 1; transform: scale(1) } }
  @keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
  @keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
  @keyframes shimmer { from { background-position: -200% 0 } to { background-position: 200% 0 } }
  @keyframes pulse-glow {
    0%,100% { box-shadow: 0 0 0 0 oklch(0.7 0.2 145 / 0.5) }
    50% { box-shadow: 0 0 0 18px oklch(0.7 0.2 145 / 0) }
  }
}

:root {
  --radius: 1rem;
  /* Light premium fintech */
  --background: oklch(0.99 0.005 250);
  --foreground: oklch(0.18 0.04 250);
  --navy: oklch(0.22 0.06 255);
  --surface: oklch(0.985 0.008 240);
  --surface-elevated: oklch(1 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.04 250);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.18 0.04 250);
  --primary: oklch(0.66 0.2 145); /* vibrant green */
  --primary-foreground: oklch(0.99 0.005 250);
  --secondary: oklch(0.95 0.015 250);
  --secondary-foreground: oklch(0.22 0.06 255);
  --muted: oklch(0.96 0.01 250);
  --muted-foreground: oklch(0.48 0.02 255);
  --accent: oklch(0.94 0.05 145);
  --accent-foreground: oklch(0.3 0.12 145);
  --gold: oklch(0.82 0.16 88);
  --destructive: oklch(0.6 0.22 25);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.92 0.01 250);
  --input: oklch(0.94 0.01 250);
  --ring: oklch(0.66 0.2 145);

  --gradient-hero:
    radial-gradient(circle at 15% 10%, oklch(0.88 0.14 145 / 0.35), transparent 45%),
    radial-gradient(circle at 90% 20%, oklch(0.85 0.1 230 / 0.3), transparent 50%),
    radial-gradient(circle at 50% 100%, oklch(0.9 0.12 90 / 0.25), transparent 60%);
  --gradient-primary: linear-gradient(135deg, oklch(0.7 0.2 150), oklch(0.62 0.21 165));
  --gradient-navy: linear-gradient(135deg, oklch(0.25 0.07 255), oklch(0.18 0.06 260));
  --gradient-mesh: conic-gradient(from 180deg at 50% 50%, oklch(0.7 0.2 145 / 0.15), oklch(0.6 0.2 230 / 0.1), oklch(0.85 0.15 90 / 0.12), oklch(0.7 0.2 145 / 0.15));
  --shadow-glow: 0 20px 60px -20px oklch(0.66 0.2 145 / 0.5);
  --shadow-soft: 0 12px 40px -12px oklch(0.3 0.05 250 / 0.15);
  --shadow-card: 0 4px 20px -4px oklch(0.3 0.05 250 / 0.08), 0 2px 6px -2px oklch(0.3 0.05 250 / 0.05);
}

@layer base {
  * { border-color: var(--color-border); }
  html { scroll-behavior: smooth; }
  body {
    background-color: var(--color-background);
    color: var(--color-foreground);
    background-image: var(--gradient-hero);
    background-attachment: fixed;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
  }
}

@layer utilities {
  .text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .text-gradient-navy {
    background: var(--gradient-navy);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .bg-gradient-primary { background: var(--gradient-primary); }
  .bg-gradient-navy { background: var(--gradient-navy); }
  .bg-gradient-mesh { background: var(--gradient-mesh); }
  .shadow-glow { box-shadow: var(--shadow-glow); }
  .shadow-soft { box-shadow: var(--shadow-soft); }
  .shadow-card { box-shadow: var(--shadow-card); }
  .glass {
    background: color-mix(in oklab, white 70%, transparent);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid color-mix(in oklab, var(--foreground) 8%, transparent);
  }
  .glass-dark {
    background: color-mix(in oklab, var(--navy) 85%, transparent);
    backdrop-filter: blur(20px);
  }
  .shimmer-text {
    background: linear-gradient(110deg, var(--foreground) 30%, var(--primary) 50%, var(--foreground) 70%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 3s linear infinite;
  }
  .grid-pattern {
    background-image:
      linear-gradient(to right, oklch(0.3 0.05 250 / 0.06) 1px, transparent 1px),
      linear-gradient(to bottom, oklch(0.3 0.05 250 / 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
  }
  .reveal { animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hover-bounce { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .hover-bounce:hover { transform: translateY(-6px) scale(1.04); }
  .hover-bounce:active { transform: translateY(-2px) scale(0.98); }
  @keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-4px); }
  }
  .group:hover .group-bounce { animation: bounce-soft 0.6s ease-in-out; }
}
