/* custom.css - TEO CO Design System Theme Override */

:root {
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Inter', sans-serif;

  /* HSL Colors - Light Mode (Default) */
  --background: 0 0% 98%;          /* #fafafa */
  --foreground: 240 10% 3.9%;       /* #09090b */
  --card: 0 0% 100%;               /* #ffffff */
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;         /* #18181b */
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;     /* #f4f4f5 */
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;          /* #e4e4e7 */
  --input: 240 5.9% 90%;
  --ring: 240 5.9% 10%;
  --radius: 0.75rem;

  /* Raycast Light Accent Glows */
  --glow-color: rgba(120, 119, 198, 0.08);
  --glow-accent: rgba(120, 119, 198, 0.15);
}

.dark {
  /* HSL Colors - Dark Mode (Default for Raycast style) */
  --background: 240 10% 3.9%;      /* #09090b */
  --foreground: 0 0% 98%;          /* #fafafa */
  --card: 240 10% 6%;              /* #0f0f11 */
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 6%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;     /* #27272a */
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;        /* #27272a */
  --input: 240 3.7% 15.9%;
  --ring: 240 4.9% 83.9%;

  /* Raycast Dark Accent Glows */
  --glow-color: rgba(120, 119, 198, 0.03);
  --glow-accent: rgba(120, 119, 198, 0.25);
}

/* Base resets & layouts */
body {
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: background-color 0.5s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
}

/* Background glowing layout */
.glow-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  max-width: 1400px;
  min-height: 800px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-accent) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.65;
  animation: floatOrb1 25s infinite alternate ease-in-out;
}

.glow-orb-2 {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.5;
  animation: floatOrb2 20s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 40px) scale(1.1); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, -50px) scale(0.9); }
}

/* Raycast Glassmorphism Cards */
.raycast-card {
  position: relative;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.dark .raycast-card {
  background-color: rgba(21, 21, 22, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark .raycast-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.raycast-card:hover {
  border-color: hsl(var(--border) / 1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Card Glow Effect (followed by cursor coordinates updated via JS) */
.glow-card-cursor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dark .glow-card-cursor::before {
  background: radial-gradient(
    600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(120, 119, 198, 0.15),
    transparent 40%
  );
}

.glow-card-cursor:hover::before {
  opacity: 1;
}

/* Page transitions container animations */
#main-content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease-out, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-content.transition-out {
  opacity: 0;
  transform: translateY(10px);
}

#main-content.transition-in {
  opacity: 0;
  transform: translateY(-10px);
}

/* Smooth custom scrolling */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* Modern Bento Grid elements styling */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: hsl(var(--background));
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}

/* Raycast CMD-K Shortcut Pill */
.shortcut-pill {
  font-family: var(--font-sans);
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dark .shortcut-pill {
  background-color: #1c1c1e;
  border-color: #2c2c2e;
}

/* Accordion animations */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Testimonials custom scroll snapping */
.testimonials-snap {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.testimonial-card-snap {
  scroll-snap-align: start;
}
