/* --- FONT & ROOT SETUP --- */
:root {
    /* Default Palette: SilverSpark */
    --brand-primary: #007BFF;   /* Spark Blue */
    --brand-secondary: #28A745; /* Success Green */
    --brand-accent: #5bc0de;    /* Info Cyan */

    /* Default Theme: Light */
    --bg-color: #f8fafc; 
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-nested-bg: #ffffff; 
    --text-main: #111827;
    --text-muted: #4b5563; 
    --border-color: #e2e8f0;
    --shadow-color: rgba(45, 55, 72, 0.1); 
    --rhizome-color: #d1d5db; /* Light Gray */
    --input-bg: #ffffff;
}

html.dark {
    --bg-color: #020617; 
    --card-bg: rgba(30, 41, 59, 0.75);
    --card-nested-bg: rgba(2, 6, 23, 0.8); 
    --text-main: #f1f5f9;
    --text-muted: #94a3b8; 
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3); 
    --rhizome-color: #4b5563; /* Dark Gray */
    --input-bg: #1e293b;
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    transition: background-color 0.3s, color 0.3s; 
    scroll-behavior: smooth; 
}

h1, h2, h3,.font-title { 
    font-family: 'Poppins', sans-serif; 
}

.font-mono { 
    font-family: 'Share Tech Mono', monospace; 
}

/* --- CORE COMPONENTS --- */
.card { 
    background-color: var(--card-bg); 
    border: 1px solid var(--border-color); 
    backdrop-filter: blur(24px); 
    -webkit-backdrop-filter: blur(24px); 
    box-shadow: 0 10px 30px 0 var(--shadow-color); 
    transition: all 0.3s; 
}

.tab-button { 
    transition: all 0.2s ease-in-out; 
    border-bottom: 2px solid transparent; 
    padding-bottom: 0.75rem; 
    padding-top: 0.75rem;
}

.tab-button.active { 
    color: var(--brand-primary); 
    border-bottom-color: var(--brand-primary); 
}

.brand-button {
    position: relative;
    border: 1px solid var(--border-color);
    background-color: var(--card-nested-bg);
    color: var(--text-main);
    transition: all 0.3s;
    overflow: hidden;
    z-index: 1;
}

.brand-button.primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.brand-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.4s;
    z-index: -1;
}

.brand-button:hover:before {
    left: 100%;
}

.brand-button.primary:hover {
    filter: brightness(1.1);
}

/* --- CAROUSEL --- */
.carousel-container { 
    display: flex; 
    transition: transform 0.5s ease-in-out; 
}
.carousel-item { 
    min-width: 100%; 
    flex-shrink: 0;
}

/* --- THEME TOGGLE --- */
.theme-toggle-dot {
    transition: transform 0.3s ease-in-out;
}

/* --- UTILITY CLASSES (Simplified) --- */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.left-0\.5 { left: 0.125rem; }
.top-0\.5 { top: 0.125rem; }
.z-[-1] { z-index: -1; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-2 { row-gap: 0.5rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-5 { height: 1.25rem; }
.w-10 { width: 2.5rem; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.max-h-\[90vh\] { max-height: 90vh; }
.min-w-full { min-width: 100%; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.025em; }
.text-center { text-align: center; }
.text-white { color: #ffffff; }
.text-red-500 { color: #ef4444; }
.capitalize { text-transform: capitalize; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-b-xl { border-bottom-right-radius: 0.75rem; border-bottom-left-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.object-cover { object-fit: cover; }
.opacity-0 { opacity: 0; }
.opacity-80 { opacity: 0.8; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-300 { transition-duration: 300ms; }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.hover\:bg-\[var\(--card-nested-bg\)\]:hover { background-color: var(--card-nested-bg); }
.hover\:text-text-main:hover { color: var(--text-main); }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-16 > :not([hidden]) ~ :not([hidden]) { margin-top: 4rem; }
.border-t { border-top-width: 1px; }
.border-2 { border-width: 2px; }
.border-transparent { border-color: transparent; }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-\[var\(--card-nested-bg\)\] { background-color: var(--card-nested-bg); }
.sticky { position: sticky; }
.top-4 { top: 1rem; }
.hidden { display: none; }
.dark\:bg-gray-600.dark { background-color: #4b5563; }
.translate-x-full { transform: translateX(100%); }

@media (min-width: 640px) {
  .sm\:p-4 { padding: 1rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:p-8 { padding: 2rem; }
  .md\:flex { display: flex; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-7xl { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:items-start { align-items: flex-start; }
}
