/* MathNova AI - Premium Stylesheet */

/* CSS Variables */
:root {
    --nova-dark: #0a0a0f;
    --nova-navy: #0f172a;
    --nova-cyan: #00d4ff;
    --nova-violet: #8b5cf6;
    --nova-magenta: #ec4899;
    --nova-gold: #fbbf24;
    
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(0, 212, 255, 0.1);
    --glow-cyan: 0 0 30px rgba(0, 212, 255, 0.4);
    --glow-violet: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--nova-dark);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--nova-cyan), var(--nova-violet), var(--nova-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, var(--nova-cyan), var(--nova-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effects */
.glow-cyan {
    box-shadow: var(--glow-cyan);
}

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

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--nova-cyan), var(--nova-violet));
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-weight: 600;
    color: var(--nova-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 8px;
    padding: 14px 32px;
    font-weight: 600;
    color: var(--nova-cyan);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--nova-cyan);
}

/* Navigation */
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--nova-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nova-cyan), var(--nova-violet));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Feature Cards */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* Status Indicators */
.status-verified {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.status-pending {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

.status-hypothesis {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #8b5cf6;
}

/* Grid Pattern */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Math Formula Styling */
.math-formula {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 8px 0;
}

/* Loading Animation */
.loading-ring {
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--nova-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--nova-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--nova-cyan), var(--nova-violet));
    border-radius: 4px;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .formula-float {
        font-size: 10px;
    }
}

/* Section Spacing */
section {
    position: relative;
}

/* Canvas Container */
canvas {
    display: block;
}

/* Interactive Elements */
.interactive-hover {
    transition: all 0.3s ease;
}

.interactive-hover:hover {
    transform: scale(1.05);
}

/* Pricing Cards */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--nova-cyan), var(--nova-violet));
}

/* Dashboard Elements */
.dashboard-panel {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
}

/* Graph Visualization */
.graph-node {
    transition: all 0.3s ease;
}

.graph-node:hover {
    filter: drop-shadow(0 0 10px var(--nova-cyan));
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

/* Focus States */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--nova-cyan);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: white;
}

/* Print Styles */
@media print {
    .glass,
    .glass-card {
        background: white !important;
        border: 1px solid #ccc !important;
    }
    
    .gradient-text,
    .gradient-text-cyan {
        -webkit-text-fill-color: black !important;
        color: black !important;
    }
}