/* Custom styles for BTCNerve */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero gradient - clean black */
.hero-gradient {
    background: #0f1115;
    position: relative;
    overflow: hidden;
}

/* Hero content above overlays */
.hero-gradient > * {
    position: relative;
    z-index: 1;
}

/* Bitcoin orange accent */
.text-btc {
    color: #f7931a;
}

.bg-btc {
    background-color: #f7931a;
}

/* Glowing button effect */
.btn-glow {
    position: relative;
    transition: all 0.3s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: inherit;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-glow:hover::before {
    opacity: 0.6;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(247, 147, 26, 0.5);
}

/* Card hover effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
}

/* Fade in on scroll animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Pulse animation for live indicator */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #f7931a 0%, #fcd34d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats counter styling */
.stat-number {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #f7931a 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pricing card highlight */
.pricing-popular {
    border: 2px solid #f7931a;
    position: relative;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.05) 0%, transparent 100%);
}

.pricing-popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f7931a 0%, #ea580c 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Code block styling */
.code-block {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}

.code-block code {
    color: #d4d4d4;
    font-family: 'Monaco', 'Menlo', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.6;
}

/* Typing cursor effect */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Feature icon container */
.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    transition: transform 0.3s ease;
}

.card-hover:hover .feature-icon {
    transform: scale(1.1);
}

/* Source logos with grayscale hover */
.source-logo {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.source-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* CTA section animated gradient */
.cta-gradient {
    background: linear-gradient(135deg, #f7931a 0%, #ea580c 50%, #dc2626 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Usage progress bar */
.usage-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #f7931a 70%, #ef4444 100%);
    transition: width 0.3s ease;
}

/* Dashboard sidebar */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #6b7280;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.sidebar-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.sidebar-link.active {
    background: #fff7ed;
    color: #ea580c;
}

/* API Key display */
.api-key-display {
    font-family: 'Monaco', 'Menlo', monospace;
    background: #f9fafb;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* Tier badges */
.tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.tier-free {
    background: #f3f4f6;
    color: #6b7280;
}

.tier-starter {
    background: #dbeafe;
    color: #1d4ed8;
}

.tier-professional {
    background: #fef3c7;
    color: #b45309;
}

.tier-enterprise {
    background: #ede9fe;
    color: #7c3aed;
}

/* Animated border for featured cards */
.animated-border {
    position: relative;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f7931a, #3b82f6, #f7931a);
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    animation: border-rotate 3s linear infinite;
}

@keyframes border-rotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Number counter animation */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-animate {
    animation: count-up 0.5s ease forwards;
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}
