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

:root {
    --color-bg: #0A0F1E; /* Deep dark blue */
    --color-primary: #22D3EE; /* Cyan */
    --color-secondary: #A78BFA; /* Purple */
    --color-text: #E5E7EB; /* Light Gray */
    --color-text-muted: #9CA3AF; /* Gray */
    --color-accent: #34D399; /* Green */
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Buttons */
.btn {
    @apply inline-block font-bold py-3 px-6 rounded-lg transition-all duration-300 ease-in-out transform;
}

.btn-primary {
    @apply bg-cyan-500 text-white hover:bg-cyan-600 shadow-lg shadow-cyan-500/20 hover:shadow-cyan-500/40;
}

.btn-secondary {
    @apply bg-purple-500 text-white hover:bg-purple-600 shadow-lg shadow-purple-500/20 hover:shadow-purple-500/40;
}

.btn-outline {
    @apply bg-transparent border-2 border-cyan-500 text-cyan-500 hover:bg-cyan-500 hover:text-white;
}

/* Header & Footer */
.site-header {
    @apply sticky top-0 z-50 bg-gray-900/80 backdrop-blur-lg border-b border-gray-800;
}

.site-footer {
    @apply bg-gray-900 border-t border-gray-800;
}

/* Language Switcher */
#language-switcher-button {
    @apply relative bg-gray-800 border border-gray-600 px-4 py-2 rounded-lg text-sm font-medium text-gray-200 hover:bg-gray-700 transition-all duration-300;
    @apply focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:ring-offset-2 focus:ring-offset-gray-900;
}

#language-switcher-button::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
}

#language-switcher-button:hover::after {
    transform: translateY(-50%) rotate(180deg);
}

#language-menu {
    position: absolute !important;
    z-index: 9999 !important;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: linear-gradient(135deg, rgb(31 41 55), rgb(17 24 39));
    border: 1px solid rgb(75 85 99);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(12px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

#language-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.language-link {
    @apply flex items-center px-4 py-3 text-sm text-gray-200 transition-all duration-200;
    position: relative;
    background: transparent;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.language-link:hover {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.1), rgba(167, 139, 250, 0.1));
    color: rgb(34 211 238);
    transform: translateX(4px);
}

.language-link:first-child {
    border-radius: 12px 12px 0 0;
}

.language-link:last-child {
    border-radius: 0 0 12px 12px;
}

.language-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgb(34 211 238), rgb(167 139 250));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.language-link:hover::before {
    opacity: 1;
}

.language-link.active {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.15), rgba(167, 139, 250, 0.15));
    color: rgb(34 211 238);
    font-weight: 600;
}

.language-link.active::before {
    opacity: 1;
}

/* Language flag icons (optional enhancement) */
.language-link::after {
    content: attr(data-flag);
    margin-left: auto;
    font-size: 16px;
}

/* Cards */
.feature-card {
    @apply bg-gray-800/50 p-6 rounded-xl border border-transparent hover:border-cyan-500/50 transition-all duration-300;
    @apply transform hover:-translate-y-2;
}

.use-case-card {
    @apply bg-gray-900/70 backdrop-blur-sm p-6 rounded-lg text-center transition-all duration-300;
    @apply hover:bg-cyan-500/10 transform hover:scale-105;
}

.use-case-detail-card {
    @apply bg-gray-800/50 p-8 rounded-lg border border-gray-700/50 transition-all duration-300 hover:shadow-2xl hover:shadow-purple-500/10 hover:border-purple-500/50;
}

.cost-card {
    @apply bg-gray-800/50 p-6 rounded-lg flex items-center gap-6 border border-gray-700;
}

.pricing-card {
    @apply bg-gray-800/50 p-8 rounded-xl border border-gray-700 text-center;
}
.pricing-card .price {
    @apply text-5xl font-bold my-4 text-cyan-400;
}
.pricing-card .per-million {
    @apply text-gray-400;
}

/* Table */
.table-wrapper {
    @apply rounded-lg border border-gray-700 overflow-hidden;
}

/* Community & FAQ */
.community-link {
    @apply bg-gray-800/50 p-8 rounded-lg text-center flex flex-col items-center justify-center transition-all duration-300;
    @apply hover:bg-purple-500/10 hover:text-purple-400 transform hover:-translate-y-1;
}

.faq-item {
    @apply bg-gray-800/50 p-4 rounded-lg border border-gray-700;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item[open] summary i {
    transform: rotate(180deg);
}

/* Tech Diagram Placeholder */
.tech-diagram-placeholder {
    @apply w-full h-64 bg-gray-800/50 rounded-lg flex flex-col justify-center items-center border-2 border-dashed border-gray-700;
}

/* Animations */
@keyframes fade-in-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes feature-card-anim {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-fade-in-down { animation: fade-in-down 0.8s ease-out both; }
.animate-fade-in-up { animation: fade-in-up 0.8s ease-out 0.2s both; }
.animate-feature-card { animation: feature-card-anim 0.6s ease-out backwards; }


.scroll-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-target.visible {
    opacity: 1;
    transform: translateY(0);
}
