@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

:root {
  --background: oklch(1.0000 0 0);
  --foreground: oklch(0.3211 0 0);
  --card: oklch(1.0000 0 0);
  --card-foreground: oklch(0.3211 0 0);
  --popover: oklch(1.0000 0 0);
  --popover-foreground: oklch(0.3211 0 0);
  --primary: oklch(0.4624 0.2526 263.7448);
  --primary-foreground: oklch(1.0000 0 0);
  --secondary: oklch(0.4624 0.2526 263.7448);
  --secondary-foreground: oklch(1.0000 0 0);
  --muted: oklch(0.9846 0.0017 247.8389);
  --muted-foreground: oklch(0.5510 0.0234 264.3637);
  --accent: oklch(0.9413 0.0236 272.8188);
  --accent-foreground: oklch(0.4624 0.2526 263.7448);
  --destructive: oklch(0.6368 0.2078 25.3313);
  --destructive-foreground: oklch(1.0000 0 0);
  --border: oklch(0.9491 0 0);
  --input: oklch(0.7155 0 0);
  --ring: oklch(0.4624 0.2526 263.7448);
  --chart-1: oklch(0.8246 0.0730 270.1137);
  --chart-2: oklch(0.7671 0.0988 268.6463);
  --chart-3: oklch(0.6520 0.1555 267.9256);
  --chart-4: oklch(0.5465 0.2092 265.4121);
  --chart-5: oklch(0.4624 0.2526 263.7448);
  --sidebar: #fffff;
  --sidebar-foreground: oklch(0.3211 0 0);
  --sidebar-primary: oklch(0.4624 0.2526 263.7448);
  --sidebar-primary-foreground: oklch(1.0000 0 0);
  --sidebar-accent: oklch(0.9514 0.0250 236.8242);
  --sidebar-accent-foreground: oklch(0.3791 0.1378 265.5222);
  --sidebar-border: oklch(0.4624 0.2526 263.7448);
  --sidebar-ring: oklch(0.4624 0.2526 263.7448);
  --font-sans: Inter, sans-serif;
  --font-serif: Roboto, sans-serif;
  --font-mono: JetBrains Mono, monospace;
  --radius: 0.375rem;
  --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
  --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
  --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
  --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
  --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
  --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
}

.dark {
  --background: oklch(0.2046 0 0);
  --foreground: oklch(0.9219 0 0);
  --card: oklch(0.2686 0 0);
  --card-foreground: oklch(0.9219 0 0);
  --popover: oklch(0.2686 0 0);
  --popover-foreground: oklch(0.9219 0 0);
  --primary: oklch(0.4624 0.2526 263.7448);
  --primary-foreground: oklch(1.0000 0 0);
  --secondary: oklch(0.4624 0.2526 263.7448);
  --secondary-foreground: oklch(1.0000 0 0);
  --muted: oklch(0.2686 0 0);
  --muted-foreground: oklch(0.7155 0 0);
  --accent: oklch(0.8246 0.0730 270.1137);
  --accent-foreground: oklch(0.4624 0.2526 263.7448);
  --destructive: oklch(0.6368 0.2078 25.3313);
  --destructive-foreground: oklch(1.0000 0 0);
  --border: oklch(0.3715 0 0);
  --input: oklch(0.3715 0 0);
  --ring: oklch(0.4624 0.2526 263.7448);
  --chart-1: oklch(0.8246 0.0730 270.1137);
  --chart-2: oklch(0.7671 0.0988 268.6463);
  --chart-3: oklch(0.6520 0.1555 267.9256);
  --chart-4: oklch(0.5465 0.2092 265.4121);
  --chart-5: oklch(0.4624 0.2526 263.7448);
  --sidebar: oklch(0 0 0);
  --sidebar-foreground: oklch(0.9219 0 0);
  --sidebar-primary: oklch(0.4624 0.2526 263.7448);
  --sidebar-primary-foreground: oklch(1.0000 0 0);
  --sidebar-accent: oklch(0.3791 0.1378 265.5222);
  --sidebar-accent-foreground: oklch(1.0000 0 0);
  --sidebar-border: oklch(0.3715 0 0);
  --sidebar-ring: oklch(0.4624 0.2526 263.7448);
  --font-sans: Inter, sans-serif;
  --font-serif: Roboto, sans-serif;
  --font-mono: JetBrains Mono, monospace;
  --radius: 0.375rem;
  --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
  --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
  --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
  --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
  --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
  --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
}

@theme inline {
  --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-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);

  --font-sans: var(--font-sans);
  --font-mono: var(--font-mono);
  --font-serif: var(--font-serif);

  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  --shadow-2xs: var(--shadow-2xs);
  --shadow-xs: var(--shadow-xs);
  --shadow-sm: var(--shadow-sm);
  --shadow: var(--shadow);
  --shadow-md: var(--shadow-md);
  --shadow-lg: var(--shadow-lg);
  --shadow-xl: var(--shadow-xl);
  --shadow-2xl: var(--shadow-2xl);
}

@layer base {
  * {
    border-color: var(--border);
  }

  body {
    background-color: var(--background);
    color: var(--foreground);
    padding-top: 64px;
    font-feature-settings: "rlig" 1, "calt" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
  }

  .btn-create-account {
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.5), inset 0 8px 4px -4px rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  }

  @media screen and (-webkit-min-device-pixel-ratio: 2),
  screen and (min-resolution: 192dpi) {
    body {
      -webkit-font-smoothing: subpixel-antialiased;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

@media (min-width: 768px) {
  .hero-section {
    position: relative;
    overflow: hidden;
    background-image: url("/images/hero-bg.png") !important;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
  }
}

.customer-screenshot {
  width: 200%;
  max-width: none;
}

@media (min-width: 768px) {
  .customer-screenshot {
    width: 100%;
    max-width: none;
  }
}

.message-sent-banner {
  background-image: linear-gradient(to right, #8ec7fc, #8977fa);
}

/* Feature card hover animation */
.feature-card {
  background-color: #ecf2ff;
  border: 1px solid #8eb2fc;
  border-radius: 1em;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(142, 178, 252, 0.15);
}

.feature-card::before {
  width: 100%;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  margin: -1px;
  border-radius: inherit;
}

.how-it-works-section {
  background-color: #e9f0fa;
}

.how-it-works-card {
  box-shadow: 0px 3px 10px 0px #c2cee880;
}

/* Pricing card animations */
.popular-price-option {
  box-shadow: 0.5px 0.5px 3px 0px var(--colors-alpha-dark-100);
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.check-list {
  width: 32px;
  height: 32px;
  border-radius: 20px;
  background: #fcfcfc;
  border: 1px solid #c8d6e5;
}

.call-to-action {
  background-image: url("/images/call-to-action-bg-mobile.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .call-to-action {
    background-image: url("/images/call-to-action-bg.png");
    background-position: center;
    background-size: auto;
    background-repeat: no-repeat;
  }
}

/* Button and link animations */
a,
button {
  transition: all 0.2s ease-in-out;
}

a:hover,
button:hover {
  transform: translateY(-1px);
}

/* Scroll-triggered animations */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    will-change: opacity, transform;
  }

  /* Base animation classes - initial states are set in JavaScript */
  .slide-up,
  .slide-down,
  .slide-left,
  .slide-right,
  .fade-scale {
    will-change: opacity, transform;
  }

  /* Stagger children container */
  .stagger-children {
    will-change: opacity, transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Hero section animations */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  animation: float 20s ease-in-out infinite;
  z-index: -1;
  opacity: 0.6;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.02);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Stagger the feature cards animation */
.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Loading state for buttons */
button:active {
  transform: scale(0.98);
}

/* Checkmark animation in pricing tables */
.check-list svg {
  opacity: 0;
  animation: scaleIn 0.3s ease-out forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Navbar styles */
.fixed {
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  background-color: transparent;
}

.dark .fixed {
  background-color: hsl(var(--background));
}

.fixed.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dark .fixed.scrolled {
  background-color: #000000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}



/* Input focus animation */
input:focus {
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Call to action button pulse */
.call-to-action a {
  position: relative;
}

.call-to-action a::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 9999px;
  background: white;
  z-index: -1;
  opacity: 0.3;
  animation: ripple 1.5s ease-out infinite;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}