/* ========================================
   TORZON ACCESS - Modern Redesign 2026
   Domain: torzonaccess.club
   ======================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ========================================
   CSS Variables - Design Tokens
   ======================================== */
:root {
    /* Core Colors */
    --primary: #3274d6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #2f3947;
    --secondary-dark: #1e2530;
    --accent: #58d3f7;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;

    /* Neutral Palette */
    --bg-dark: #0a0f1a;
    --bg-darker: #050810;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-card-hover: rgba(20, 30, 50, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Borders & Effects */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(50, 116, 214, 0.3);
    --glow-primary: rgba(50, 116, 214, 0.4);
    --glow-accent: rgba(88, 211, 247, 0.3);
    --glow-success: rgba(40, 167, 69, 0.4);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ========================================
   Animated Background
   ======================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #0d1526 100%);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    animation: floatParticle 20s infinite linear;
    opacity: 0.3;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes floatParticle {
    0% {
        transform: translate3d(0, 100vh, 0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translate3d(50px, -100px, 0);
        opacity: 0;
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(50, 116, 214, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(50, 116, 214, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes gridMove {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(0, 50px, 0);
    }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 20s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--glow-accent) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(20px, -20px, 0) scale(1.05);
    }
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.1;
    animation: scanMove 12s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes scanMove {
    0% {
        transform: translate3d(0, -10px, 0);
    }

    100% {
        transform: translate3d(0, 100vh, 0);
    }
}

/* ========================================
   Navigation
   ======================================== */
.nav-container {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 15, 26, 0.8);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 var(--space-lg);
    max-width: 1280px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.crypto-ticker {
    display: none;
    align-items: center;
    gap: var(--space-lg);
    margin-left: var(--space-xl);
    padding: 0 var(--space-md);
    border-left: 1px solid var(--border-subtle);
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.ticker-icon {
    height: 18px;
    width: 18px;
    object-fit: contain;
}

.ticker-symbol {
    color: var(--text-muted);
    font-weight: 600;
}

.ticker-price {
    color: var(--primary-light);
    font-weight: 700;
    text-shadow: 0 0 10px var(--glow-primary);
}

.ticker-change.up {
    color: var(--success);
}

.ticker-change.down {
    color: var(--danger);
}

.nav-logo {
    height: 32px;
    width: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 15px var(--glow-primary);
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: var(--space-md);
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
}

.mobile-menu.open {
    display: block;
}

/* ========================================
   Cards & Layout
   ======================================== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.card-body {
    padding: var(--space-lg);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem var(--space-lg);
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sidebar-header {
    padding: var(--space-md) var(--space-lg);
    background: var(--secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-header h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

.sidebar-body {
    padding: var(--space-lg);
}

/* ========================================
   Tutorial Specific Styles
   ======================================== */
.tutorial-step {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2.5rem;
}

.tutorial-step::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 2rem;
    bottom: -1rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.tutorial-step:last-child::before {
    display: none;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    box-shadow: 0 0 20px var(--glow-primary);
    z-index: 1;
}

.step-content h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* ========================================
   Status & Badge Utils
   ======================================== */
.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: var(--radius-full);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-success);
}

.status-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    text-transform: uppercase;
}

/* Responsive */
@media (min-width: 768px) {

    .nav-links,
    .crypto-ticker {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* UTILS */
.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary-light);
}

.text-success {
    color: var(--success);
}

.font-mono {
    font-family: var(--font-mono);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: var(--radius-full);
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.status-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.status-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.onion-link-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.onion-link-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.onion-link {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--primary-light);
    word-break: break-all;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: var(--bg-glass);
    color: #fff;
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-accent);
}

/* ========================================
   Reduced Motion Support
   ======================================== */
@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;
    }

    .particle,
    .grid-overlay,
    .orb,
    .scanline {
        animation: none !important;
    }
}