:root {
  /* Professional sea green, white, black, yellow color scheme */
  --primary-sea-green: #20B2AA;     /* Sea green primary */
  --primary-dark-green: #008B8B;    /* Dark cyan/sea green */
  --primary-yellow: #FFD700;        /* Gold/yellow accent */
  --primary-dark: #1a1a1a;          /* Professional black */
  --primary-darker: #000000;        /* Pure black */
  
  /* Backgrounds - professional white/light */
  --bg: linear-gradient(180deg, #ffffff 0%, #f8fffe 100%);
  --bg-secondary: rgba(255, 255, 255, 0.95);
  --bg-tertiary: rgba(255, 255, 255, 0.85);
  --bg-card: #ffffff;
  
  /* Glass effects for professional UI */
  --glass: rgba(255, 255, 255, 0.85);
  --glass-hover: rgba(32, 178, 170, 0.1);
  --glass-active: rgba(32, 178, 170, 0.15);
  --glass-border: rgba(32, 178, 170, 0.2);
  
  /* Borders */
  --border: rgba(32, 178, 170, 0.2);
  --border-hover: rgba(32, 178, 170, 0.4);
  --border-focus: rgba(255, 215, 0, 0.6);
  
  /* Text colors */
  --text: #1a1a1a;                 /* Professional black */
  --text-muted: #666666;           /* Medium gray */
  --text-heading: #000000;         /* Pure black for headings */
  --text-accent: #20B2AA;          /* Sea green accent */
  
  /* Accents - sea green, yellow, white */
  --accent: #20B2AA;               /* Sea green primary */
  --accent2: #FFD700;              /* Yellow/gold accent */
  --accent3: #008B8B;              /* Dark sea green */
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  
  /* Status colors */
  --success: #20B2AA;             /* Sea green for success */
  --error: #dc3545;               /* Professional red */
  --warning: #FFD700;             /* Yellow for warnings */
  
  /* Shadows - professional, subtle */
  --shadow: 0 2px 8px rgba(26, 26, 26, 0.1), inset 0 1px 0 rgba(255,255,255,0.8);
  --shadow-hover: 0 8px 24px rgba(32, 178, 170, 0.15), 0 2px 8px rgba(255, 215, 0, 0.1);
  --shadow-focus: 0 0 0 4px rgba(255, 215, 0, 0.25), inset 0 0 0 1px rgba(32, 178, 170, 0.3);
  
  /* Depth effects (professional) */
  --depth-1: rgba(32, 178, 170, 0.1);
  --depth-2: rgba(255, 215, 0, 0.1);
  --glow-green: 0 0 16px rgba(32, 178, 170, 0.3);
  --glow-yellow: 0 0 16px rgba(255, 215, 0, 0.4);
  
  /* Transitions - faster for better performance */
  --transition-fast: all 0.1s ease; /* Reduced from 0.18s */
  --transition-normal: all 0.15s ease; /* Reduced from 0.28s */
  --transition-slow: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); /* Reduced from 0.45s */
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-xxl: 24px;
  --radius-full: 9999px;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-xxl: 32px;
  
  /* Typography */
  --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Inter var', 'Segoe UI', system-ui, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* Animation timing functions */
  --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
  --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
  --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
  --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
  --ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335);
  
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
  
  --ease-in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955);
  --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
  --ease-in-out-expo: cubic-bezier(1, 0, 0, 1);
  --ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);
  
  /* Custom easings for specific effects */
  --bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --overshoot: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Animation durations (faster for better performance) */
  --duration-fast: 0.1s; /* Reduced from 0.22s */
  --duration-normal: 0.15s; /* Reduced from 0.35s */
  --duration-slow: 0.25s; /* Reduced from 0.6s */
  --duration-slower: 0.4s; /* Reduced from 0.9s */
  --duration-slowest: 0.6s; /* Reduced from 1.4s */
  
  /* Animation delays */
  --delay-fast: 0.05s; /* Reduced from 0.1s */
  --delay-normal: 0.1s; /* Reduced from 0.2s */
  --delay-slow: 0.15s; /* Reduced from 0.3s */
  --delay-slower: 0.25s; /* Reduced from 0.5s */

  /* Scroll tint variables for smooth background shift (very subtle on light) */
  --scroll-tint-h: 210;   /* hue */
  --scroll-tint-s: 50%;   /* saturation */
  --scroll-tint-l: 96%;   /* lightness */
  --scroll-tint-alpha: 0; /* dynamic alpha updated via JS */
}

*{
  box-sizing:border-box;
  /* Add will-change for better performance on animated elements */
  will-change: transform, opacity;
}

html,body{
  height:100%;
  /* Optimize rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body{
  margin:0; 
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Noto Sans, Arial;
  background:
    linear-gradient(0deg, hsla(180, 40%, 98%, var(--scroll-tint-alpha, 0.0)), hsla(180, 40%, 98%, var(--scroll-tint-alpha, 0.0))),
    radial-gradient(900px 500px at 10% -10%, rgba(32, 178, 170, 0.08), rgba(0,0,0,0)),
    radial-gradient(700px 420px at 110% 10%, rgba(255, 215, 0, 0.06), rgba(0,0,0,0)),
    radial-gradient(600px 380px at 50% 50%, rgba(0, 139, 139, 0.04), rgba(0,0,0,0)),
    var(--bg);
  background-size: 100% 100%;
  animation: none; /* disable background motion for professional feel */
  overflow-x:hidden;
  min-height: 100vh;
  /* Optimize performance */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Keep keyframes (not used by body now) for potential reuse */
@keyframes bgSequential {
  0% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
  25% { background-position: 0% 0%, 20% 10%, 0% 0%, 0% 0%, 0% 0%; }
  50% { background-position: 0% 0%, 20% 10%, 10% 20%, 0% 0%, 0% 0%; }
  75% { background-position: 0% 0%, 20% 10%, 10% 20%, -10% -10%, 0% 0%; }
  100% { background-position: 0% 0%, 20% 10%, 10% 20%, -10% -10%, 100% 100%; }
}

a{
  color:inherit; 
  text-decoration:none; 
  transition: var(--transition-fast); /* Faster transition */
}

a:hover{
  color: var(--text-accent); 
  text-decoration: underline; 
  text-shadow: none;
}

.container{
  width:min(1200px, 94vw); 
  margin:0 auto; 
  padding:24px;
}

.hidden{
  display:none;
}

.shadow{
  box-shadow: var(--shadow);
}

.round{
  border-radius:16px;
}

.glass{
  background:var(--glass); 
  border:1px solid var(--glass-border); 
  backdrop-filter: blur(10px);
}

/* Tags and buttons tuned for light UI */
.tag{
  display:inline-block; 
  padding:8px 12px; 
  font-size:.85rem; 
  border-radius:999px; 
  background:rgba(32, 178, 170, 0.15); 
  border:1px solid rgba(32, 178, 170, 0.3); 
  color: var(--text);
  transition: var(--transition-fast); /* Faster transition */
  backdrop-filter: blur(4px);
}

.tag:hover{
  background:rgba(32, 178, 170, 0.25); 
  box-shadow: 0 4px 14px rgba(32, 178, 170, 0.2); 
  transform: translateY(-1px); /* Reduced from -2px */
}

.btn{
  padding:12px 18px; 
  border-radius:12px; 
  border:1px solid var(--border); 
  cursor:pointer; 
  font-weight:600;
  background: var(--accent-gradient); 
  color:#ffffff; 
  transition: var(--transition-fast); /* Faster transition */
  position: relative; 
  overflow: hidden; 
  backdrop-filter: blur(8px);
}

.btn::before{
  content: ''; 
  position: absolute; 
  top: 0; 
  left: -100%; 
  width: 100%; 
  height: 100%; 
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); 
  transition: all 0.3s ease; /* Reduced from 0.6s */
}

.btn:hover{
  box-shadow: var(--shadow-hover); 
  transform: translateY(-1px); /* Reduced from -2px */
}

.btn:hover::before{
  left: 100%;
}

.btn.ghost{
  background:#ffffff; 
  color:var(--text); 
  border:1px solid var(--border); 
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.1);
}

.btn.ghost:hover{
  background: rgba(32, 178, 170, 0.05); 
  box-shadow: 0 6px 16px rgba(32, 178, 170, 0.15);
}

.grid{
  display:grid; 
  gap:16px; 
  grid-template-columns: repeat(12, 1fr);
}

/* Card tuned for light */
.card{
  grid-column: span 4; 
  background:linear-gradient(180deg, #ffffff, #f8fffe);
  border:1px solid var(--border); 
  border-radius:20px; 
  padding:20px; 
  position:relative; 
  overflow:hidden; 
  transform-style:preserve-3d; 
  transition: var(--transition-fast); /* Faster transition */
  transform: translateZ(0); 
  box-shadow: var(--shadow);
}

.card:hover{
  transform: translateZ(5px) translateY(-3px); /* Reduced from 10px/6px */
  box-shadow: var(--shadow-hover); 
  border:1px solid var(--border-hover);
}

.card.large{
  grid-column: span 8;
}

.card .art{
  height:180px; 
  border-radius:16px; 
  background:
    radial-gradient(200px 120px at 70% 10%, rgba(32, 178, 170, 0.15), transparent 40%),
    radial-gradient(200px 120px at 30% 90%, rgba(255, 215, 0, 0.12), transparent 40%),
    radial-gradient(150px 100px at 50% 50%, rgba(0, 139, 139, 0.08), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  border:1px solid var(--border); 
  box-shadow: inset 0 0 18px rgba(26, 26, 26, 0.05); 
  transition: var(--transition-fast); /* Faster transition */
}

.card .art:hover{
  box-shadow: inset 0 0 12px rgba(32, 178, 170, 0.2);
}

.card h3{
  margin:12px 0 8px; 
  font-size:1.2rem; 
  color: var(--text-heading); 
  font-weight: 700;
}

.card p{
  margin:0; 
  color:var(--text-muted); 
  font-size:.95rem; 
  line-height: 1.55;
}

.pill{
  position:absolute; 
  right:18px; 
  top:18px; 
  font-size:.75rem; 
  opacity:.95; 
  background:rgba(255, 215, 0, 0.2); 
  border:1px solid rgba(255, 215, 0, 0.4); 
  padding:8px 12px; 
  border-radius:999px; 
  transition: var(--transition-fast); /* Faster transition */
}

.pill:hover{
  background:rgba(255, 215, 0, 0.35); 
  box-shadow: 0 8px 18px rgba(255, 215, 0, 0.4); 
  transform: scale(1.02) translateY(-0.5px); /* Reduced from -1px */
}

@media (max-width: 900px){
  .card{
    grid-column: span 12;
  }
  
  .card.large{
    grid-column: span 12;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); } /* Reduced from 1.05 */
  100% { transform: scale(1); }
}

@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-4px)} /* Reduced from -8px */
}

/* Typing indicator animation */
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); } /* Reduced from -10px */
}

.typing-indicator {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 4px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: typing 0.7s infinite ease-in-out; /* Reduced from 1.4s */
}

.typing-dot:nth-child(2) { animation-delay: 0.1s; } /* Reduced from 0.2s */
.typing-dot:nth-child(3) { animation-delay: 0.2s; } /* Reduced from 0.4s */

/* Loading dots (fixed multiple definitions) */
@keyframes blink { 0% {opacity: 0.2;} 20% {opacity: 1;} 100% {opacity: 0.2;} }
.loading-dots::after { content: '...'; animation: blink 0.7s infinite; } /* Reduced from 1.4s */

.success-check::before { content: '✓ '; }