@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) + 12px);

  --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-primary-glow: var(--primary-glow);
  --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-surface: var(--surface);

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

:root {
  --radius: 0.75rem;

  /* Brand: SSG Edge logo — gold + deep red, charcoal text, white */
  --background: oklch(1 0 0);
  --foreground: oklch(0.2 0.02 30);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0.02 30);

  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.2 0.02 30);

  --primary: oklch(0.72 0.16 78);            /* logo gold */
  --primary-foreground: oklch(0.15 0.02 30);
  --primary-glow: oklch(0.82 0.15 82);        /* lighter gold for gradients */

  --secondary: oklch(0.52 0.21 27);           /* logo red */
  --secondary-foreground: oklch(0.99 0.005 80);

  --muted: oklch(0.965 0.005 60);
  --muted-foreground: oklch(0.48 0.02 40);

  --accent: oklch(0.94 0.06 85);              /* soft gold tint */
  --accent-foreground: oklch(0.32 0.12 35);

  --destructive: oklch(0.55 0.22 27);
  --destructive-foreground: oklch(0.99 0.003 80);

  --border: oklch(0.91 0.01 60);
  --input: oklch(0.91 0.01 60);
  --ring: oklch(0.72 0.16 78);

  --surface: oklch(0.985 0.01 80);

  /* Hero: deep charcoal → bronze → gold */
  --gradient-hero: linear-gradient(135deg, oklch(0.28 0.08 45) 0%, oklch(0.42 0.12 60) 55%, oklch(0.68 0.16 78) 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-glow));
  --gradient-gold: linear-gradient(135deg, oklch(0.78 0.16 80), oklch(0.68 0.18 60));
  --shadow-elegant: 0 20px 50px -20px color-mix(in oklab, var(--primary) 40%, transparent);
  --shadow-soft: 0 8px 24px -12px color-mix(in oklab, var(--primary) 22%, transparent);

  --transition-smooth: 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

@layer base {
  * {
    border-color: var(--color-border);
  }
  html {
    scroll-behavior: smooth;
  }
  body {
    background-color: var(--color-background);
    color: var(--color-foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
  }
}

@utility container-edge {
  width: 100%;
  margin-inline: auto;
  max-width: 80rem;
  padding-inline: 1.25rem;
  @media (min-width: 768px) {
    padding-inline: 2rem;
  }
}

@utility gradient-hero {
  background-image: var(--gradient-hero);
}

@utility gradient-primary {
  background-image: var(--gradient-primary);
}

@utility shadow-elegant {
  box-shadow: var(--shadow-elegant);
}

@utility shadow-soft {
  box-shadow: var(--shadow-soft);
}

@utility text-balance {
  text-wrap: balance;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@utility animate-fade-up {
  animation: fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@utility animate-fade-in {
  animation: fade-in 800ms ease-out both;
}
