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

:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
  --font-weight-medium: 500;
  --font-weight-normal: 400;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

h1 {
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h2 {
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h3 {
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h4 {
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

label {
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

button {
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

input {
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
}

/* Animation System (replicating framer-motion) */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.animate-on-scroll.delay-100.animate-in {
  transition-delay: 0.1s;
}

.animate-on-scroll.delay-200.animate-in {
  transition-delay: 0.2s;
}

.animate-on-scroll.delay-300.animate-in {
  transition-delay: 0.3s;
}

.animate-on-scroll.delay-400.animate-in {
  transition-delay: 0.4s;
}

.animate-on-scroll.animate-slide-left {
  transform: translate3d(-24px, 0, 0);
}

.animate-on-scroll.animate-slide-right {
  transform: translate3d(24px, 0, 0);
}

.animate-on-scroll.animate-scale {
  transform: scale(0.98);
}

.animate-on-scroll.animate-slide-left.animate-in,
.animate-on-scroll.animate-slide-right.animate-in,
.animate-on-scroll.animate-scale.animate-in {
  transform: translate3d(0, 0, 0);
}

/* Hero animations (instant on page load) */
.animate-hero {
  animation: fade-in-up 0.8s ease-out;
}

.animate-hero-image {
  animation: scale-in 0.8s ease-out 0.2s both;
}
