@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";

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

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --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-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
}

:root, .dark {
  --background: oklch(0.13 0 0); /* graphite #0a0a0a equivalent */
  --foreground: oklch(0.98 0 0); /* near white */
  --card: oklch(0.18 0 0); /* slightly lighter for card */
  --card-foreground: oklch(0.98 0 0);
  --popover: oklch(0.15 0 0);
  --popover-foreground: oklch(0.98 0 0);
  --primary: oklch(0.98 0 0); /* sharp white for primary */
  --primary-foreground: oklch(0.13 0 0); /* dark text for primary buttons */
  --secondary: oklch(0.22 0 0); /* muted gray */
  --secondary-foreground: oklch(0.98 0 0);
  --muted: oklch(0.20 0 0);
  --muted-foreground: oklch(0.65 0 0);
  --accent: oklch(0.20 0 0);
  --accent-foreground: oklch(0.98 0 0);
  --destructive: oklch(0.45 0.15 25);
  --destructive-foreground: oklch(0.98 0 0);
  --border: oklch(0.25 0 0); /* #333 equivalent */
  --input: oklch(0.25 0 0);
  --ring: oklch(0.4 0 0);
  --radius: 0.375rem;
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
  html {
    @apply font-sans selection:bg-primary/20 selection:text-primary;
  }
}

/* Custom Utilities for Landing Page Vibe */
@layer utilities {
  .bg-grid-white {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(255 255 255 / 0.04)'%3E%3Cpath d='M0 .5H31.5V32'/%3E%3C/svg%3E");
  }
  .glass-panel {
    @apply bg-background/60 backdrop-blur-xl border border-border;
  }
}