/**
 * BELIEVE TRUST — Official Brand Guidelines
 * ==========================================
 * This file defines the core design tokens for the Believe Trust brand.
 * Import this file FIRST in any stylesheet to ensure consistency.
 * 
 * Version: 1.0.0
 * Last Updated: 2026-01-22
 */

:root {
    /* ========================================
       COLOR PALETTE
       ======================================== */

    /* Primary Background Colors */
    --bt-black: #050505;
    /* Deep black - primary background */
    --bt-black-elevated: #0a0a0a;
    /* Elevated surfaces */
    --bt-black-hover: #111111;
    /* Hover states */

    /* Text Colors */
    --bt-white: #ffffff;
    /* Primary text */
    --bt-text-primary: #e0e0e0;
    /* Slightly muted primary */
    --bt-text-muted: #888888;
    /* Secondary text */
    --bt-text-subtle: #666666;
    /* Tertiary text */
    --bt-text-dark: #444444;
    /* Very subtle text */

    /* Accent Colors */
    --bt-red: #ff3b30;
    /* Primary accent - urgency, important */
    --bt-orange: #ff9500;
    /* Secondary accent - CTAs, highlights */
    --bt-gold: #c5a47e;
    /* Tertiary accent - premium, legal docs */

    /* Functional Colors */
    --bt-success: #34c759;
    /* Success states */
    --bt-warning: #ffcc00;
    /* Warning states */
    --bt-error: #ff3b30;
    /* Error states (same as red) */

    /* Glass Effect Colors */
    --bt-glass-bg: rgba(10, 10, 10, 0.4);
    --bt-glass-bg-hover: rgba(255, 255, 255, 0.05);
    --bt-glass-border: rgba(255, 255, 255, 0.08);
    --bt-glass-border-hover: rgba(255, 255, 255, 0.3);

    /* ========================================
       TYPOGRAPHY
       ======================================== */

    /* Font Families */
    --bt-font-serif: 'Playfair Display', Georgia, serif;
    --bt-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --bt-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes - Fluid Scale */
    --bt-text-xs: 0.75rem;
    /* 12px */
    --bt-text-sm: 0.875rem;
    /* 14px */
    --bt-text-base: 1rem;
    /* 16px */
    --bt-text-md: 1.25rem;
    /* 20px */
    --bt-text-lg: 1.5rem;
    /* 24px */
    --bt-text-xl: 2rem;
    /* 32px */
    --bt-text-2xl: 2.5rem;
    /* 40px */
    --bt-text-3xl: 3.5rem;
    /* 56px */
    --bt-text-4xl: 5rem;
    /* 80px */
    --bt-text-5xl: 7rem;
    /* 112px */

    /* Line Heights */
    --bt-leading-tight: 1.1;
    --bt-leading-snug: 1.3;
    --bt-leading-normal: 1.6;
    --bt-leading-relaxed: 1.8;

    /* Letter Spacing */
    --bt-tracking-tight: -0.02em;
    --bt-tracking-normal: 0;
    --bt-tracking-wide: 0.05em;
    --bt-tracking-wider: 0.1em;
    --bt-tracking-widest: 0.2em;

    /* ========================================
       SPACING
       ======================================== */

    /* Base: 8px grid */
    --bt-space-1: 0.25rem;
    /* 4px */
    --bt-space-2: 0.5rem;
    /* 8px */
    --bt-space-3: 0.75rem;
    /* 12px */
    --bt-space-4: 1rem;
    /* 16px */
    --bt-space-5: 1.25rem;
    /* 20px */
    --bt-space-6: 1.5rem;
    /* 24px */
    --bt-space-8: 2rem;
    /* 32px */
    --bt-space-10: 2.5rem;
    /* 40px */
    --bt-space-12: 3rem;
    /* 48px */
    --bt-space-16: 4rem;
    /* 64px */
    --bt-space-20: 5rem;
    /* 80px */
    --bt-space-24: 6rem;
    /* 96px */
    --bt-space-32: 8rem;
    /* 128px */

    /* ========================================
       EFFECTS
       ======================================== */

    /* Border Radius */
    --bt-radius-sm: 4px;
    --bt-radius-md: 8px;
    --bt-radius-lg: 16px;
    --bt-radius-xl: 24px;
    --bt-radius-full: 9999px;

    /* Shadows */
    --bt-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --bt-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --bt-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --bt-shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.6);
    --bt-shadow-glow-red: 0 0 40px rgba(255, 59, 48, 0.3);
    --bt-shadow-glow-orange: 0 0 40px rgba(255, 149, 0, 0.3);

    /* Blur Effects */
    --bt-blur-sm: blur(8px);
    --bt-blur-md: blur(16px);
    --bt-blur-lg: blur(24px);
    --bt-blur-xl: blur(32px);

    /* Transitions */
    --bt-transition-fast: 0.2s ease;
    --bt-transition-base: 0.3s ease;
    --bt-transition-smooth: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --bt-transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* ========================================
       LAYOUT
       ======================================== */

    --bt-container-sm: 640px;
    --bt-container-md: 768px;
    --bt-container-lg: 1024px;
    --bt-container-xl: 1200px;
    --bt-container-2xl: 1400px;

    --bt-header-height: 80px;
    --bt-header-height-mobile: 60px;

    /* ========================================
       Z-INDEX SCALE
       ======================================== */

    --bt-z-base: 1;
    --bt-z-elevated: 10;
    --bt-z-dropdown: 100;
    --bt-z-sticky: 500;
    --bt-z-fixed: 1000;
    --bt-z-modal: 2000;
    --bt-z-overlay: 9999;
}

/* ========================================
   ACCESSIBILITY: Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   ACCESSIBILITY: Focus States
   ======================================== */

:focus-visible {
    outline: 2px solid var(--bt-orange);
    outline-offset: 2px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* ========================================
   PERFORMANCE: Font Loading
   ======================================== */

/* Fonts are imported via HTML link tags to Google Fonts */

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text Colors */
.bt-text-white {
    color: var(--bt-white);
}

.bt-text-muted {
    color: var(--bt-text-muted);
}

.bt-text-subtle {
    color: var(--bt-text-subtle);
}

.bt-text-red {
    color: var(--bt-red);
}

.bt-text-orange {
    color: var(--bt-orange);
}

.bt-text-gold {
    color: var(--bt-gold);
}

/* Background Colors */
.bt-bg-black {
    background-color: var(--bt-black);
}

.bt-bg-elevated {
    background-color: var(--bt-black-elevated);
}

/* Font Families */
.bt-font-serif {
    font-family: var(--bt-font-serif);
}

.bt-font-sans {
    font-family: var(--bt-font-sans);
}

.bt-font-mono {
    font-family: var(--bt-font-mono);
}

/* Glass Effect */
.bt-glass {
    background: var(--bt-glass-bg);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    border: 1px solid var(--bt-glass-border);
}

.bt-glass:hover {
    background: var(--bt-glass-bg-hover);
    border-color: var(--bt-glass-border-hover);
}

/* Shine Effect on Hover */
.bt-shine {
    position: relative;
    overflow: hidden;
}

.bt-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    transition: 0.6s;
    pointer-events: none;
}

.bt-shine:hover::before {
    left: 100%;
}

/* ========================================
   COMMON UTILITIES
   ======================================== */

.bt-padding-4 {
    padding: var(--bt-space-4);
}

.bt-padding-8 {
    padding: var(--bt-space-8);
}

.bt-padding-12 {
    padding: var(--bt-space-12);
}

.bt-margin-4 {
    margin: var(--bt-space-4);
}

.bt-margin-8 {
    margin: var(--bt-space-8);
}

.bt-margin-12 {
    margin: var(--bt-space-12);
}

.bt-radius-md {
    border-radius: var(--bt-radius-md);
}

.bt-radius-lg {
    border-radius: var(--bt-radius-lg);
}

/* Spacer Utilities */
.bt-spacer-sm {
    height: var(--bt-space-4);
}

.bt-spacer-md {
    height: var(--bt-space-8);
}

.bt-spacer-lg {
    height: var(--bt-space-12);
}

.bt-spacer-xl {
    height: var(--bt-space-20);
}

/* ========================================
   LOADING STATES
   ======================================== */

/* Page Loader */
.bt-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bt-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--bt-z-overlay);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.bt-page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bt-page-loader .spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--bt-glass-border);
    border-top-color: var(--bt-red);
    border-radius: 50%;
    animation: bt-spin 1s linear infinite;
}

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

/* Skeleton Loader */
.bt-skeleton {
    background: linear-gradient(90deg,
            var(--bt-black-elevated) 25%,
            var(--bt-black-hover) 50%,
            var(--bt-black-elevated) 75%);
    background-size: 200% 100%;
    animation: bt-shimmer 1.5s infinite;
    border-radius: var(--bt-radius-md);
}

@keyframes bt-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   ANIMATED COUNTERS
   ======================================== */

.bt-counter {
    font-variant-numeric: tabular-nums;
    font-family: var(--bt-font-mono);
}

/* ========================================
   GLOBAL FOOTER & PRESS CTA
   ======================================== */

.bt-main-footer {
    padding: var(--bt-space-10);
    text-align: center;
    border-top: 1px solid var(--bt-glass-border);
    color: var(--bt-text-dark);
    font-family: var(--bt-font-mono);
    font-size: var(--bt-text-xs);
    background-color: var(--bt-black);
}

.bt-footer-links {
    display: flex;
    gap: var(--bt-space-8);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--bt-space-5);
}

.bt-footer-links a {
    color: var(--bt-text-subtle);
    text-decoration: none;
    transition: color var(--bt-transition-base);
}

.bt-footer-links a:hover {
    color: var(--bt-white);
}

.bt-press-cta {
    padding: var(--bt-space-20) 0;
    background: linear-gradient(to bottom, transparent, rgba(255, 59, 48, 0.03));
    border-top: 1px solid var(--bt-glass-border);
    text-align: center;
}

.bt-press-cta .bt-tag {
    font-family: var(--bt-font-mono);
    color: var(--bt-orange);
    font-size: var(--bt-text-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--bt-space-4);
    display: block;
}

.bt-press-cta .bt-text {
    color: var(--bt-text-muted);
    margin-bottom: var(--bt-space-8);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.bt-container {
    width: 100%;
    max-width: var(--bt-container-xl);
    margin: 0 auto;
    padding: 0 var(--bt-space-4);
}

.bt-center-text {
    text-align: center;
}

/* Horizontal Scroll for Navigation on Mobile */
@media (max-width: 768px) {
    .bt-nav-scroll {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--bt-space-2);
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .bt-nav-scroll::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }
}