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

/* ===== VARIABLES ===== */
:root {
    --primary: #9333ea;
    --primary-rgb: 147, 51, 234;
    --secondary: #7c3aed;
    --accent: #c084fc;
    --chrome: linear-gradient(135deg, #e8e8e8 0%, #a8a8a8 25%, #ffffff 50%, #a8a8a8 75%, #e8e8e8 100%);
    --chrome-dark: linear-gradient(135deg, #3a3a4a 0%, #5a5a6a 25%, #7a7a8a 50%, #5a5a6a 75%, #3a3a4a 100%);
    --metal-purple: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
    --bg-dark: #0a0612;
    --bg-card: rgba(26, 10, 46, 0.85);
    --text-primary: #f0e6ff;
    --text-secondary: #b8a8d4;
    --text-muted: #6b5a80;
    --border-color: rgba(147, 51, 234, 0.3);
    --glow: 0 0 30px rgba(147, 51, 234, 0.5);
    --border-radius: 4px;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== TECH BACKGROUND ===== */
.tech-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        linear-gradient(180deg, var(--bg-dark) 0%, #12081f 50%, var(--bg-dark) 100%);
    overflow: hidden;
}

/* Grid pattern */
.tech-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(147, 51, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 51, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* Scan line effect */
.tech-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    animation: scanLine 4s linear infinite;
    opacity: 0.5;
}

@keyframes scanLine {
    0% { top: -4px; }
    100% { top: 100%; }
}

/* Corner decorations */
.corner-decor {
    position: fixed;
    width: 150px;
    height: 150px;
    pointer-events: none;
    z-index: 10;
}

.corner-decor::before,
.corner-decor::after {
    content: '';
    position: absolute;
    background: var(--primary);
}

.corner-decor.top-left {
    top: 0;
    left: 0;
}
.corner-decor.top-left::before {
    top: 20px;
    left: 0;
    width: 60px;
    height: 2px;
}
.corner-decor.top-left::after {
    top: 0;
    left: 20px;
    width: 2px;
    height: 60px;
}

.corner-decor.top-right {
    top: 0;
    right: 0;
}
.corner-decor.top-right::before {
    top: 20px;
    right: 0;
    width: 60px;
    height: 2px;
}
.corner-decor.top-right::after {
    top: 0;
    right: 20px;
    width: 2px;
    height: 60px;
}

.corner-decor.bottom-left {
    bottom: 0;
    left: 0;
}
.corner-decor.bottom-left::before {
    bottom: 20px;
    left: 0;
    width: 60px;
    height: 2px;
}
.corner-decor.bottom-left::after {
    bottom: 0;
    left: 20px;
    width: 2px;
    height: 60px;
}

.corner-decor.bottom-right {
    bottom: 0;
    right: 0;
}
.corner-decor.bottom-right::before {
    bottom: 20px;
    right: 0;
    width: 60px;
    height: 2px;
}
.corner-decor.bottom-right::after {
    bottom: 0;
    right: 20px;
    width: 2px;
    height: 60px;
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 6, 18, 0.95);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.3);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6em;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    background: var(--chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.5));
}

/* ===== NAVIGATION ===== */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

nav ul li a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 16px;
    transition: var(--transition);
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a:hover::before {
    transform: scaleX(1);
}

nav ul li a.external {
    color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 80px 40px;
    text-align: center;
    background: var(--metal-purple);
    border-bottom: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2em, 5vw, 3em);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 25px;
    background: var(--chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2em;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 15px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px;
}

/* ===== SECTION CARDS ===== */
.section-card {
    margin-bottom: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Tech corners */
.section-card::before,
.section-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
}

.section-card::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.section-card::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.section-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.section-header {
    padding: 25px 35px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.2), transparent);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-header .icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--chrome-dark);
    border: 2px solid var(--primary);
    font-size: 1.3em;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
}

.section-content {
    padding: 35px;
}

/* ===== TYPOGRAPHY ===== */
h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 3px solid var(--primary);
}

h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-primary);
    margin: 25px 0 12px;
}

p {
    color: var(--text-secondary);
    font-size: 1.05em;
    margin-bottom: 18px;
}

strong {
    color: var(--accent);
    font-weight: 600;
}

/* ===== LISTS ===== */
ol, ul {
    padding-left: 0;
    list-style: none;
    margin: 25px 0;
}

ol li, ul li {
    position: relative;
    padding: 14px 0 14px 50px;
    color: var(--text-secondary);
    font-size: 1.05em;
    border-bottom: 1px solid rgba(147, 51, 234, 0.1);
}

ol li:last-child, ul li:last-child {
    border-bottom: none;
}

ol {
    counter-reset: item;
}

ol li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 0;
    top: 12px;
    width: 32px;
    height: 32px;
    background: var(--chrome-dark);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85em;
    font-weight: 700;
    color: var(--accent);
}

ul li::before {
    content: '▸';
    position: absolute;
    left: 15px;
    top: 14px;
    color: var(--primary);
    font-size: 1.2em;
}

/* ===== ONION LINK BOX ===== */
.onion-link {
    background: rgba(147, 51, 234, 0.1);
    border: 2px solid var(--primary);
    padding: 25px 30px;
    margin: 25px 0;
    font-family: 'Fira Code', 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.onion-link::before {
    content: 'SECURE LINK';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7em;
    letter-spacing: 2px;
    padding: 5px 15px;
}

.onion-link strong {
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 2px;
}

.onion-link code {
    color: var(--text-primary);
    word-break: break-all;
    font-size: 0.95em;
}

/* ===== SECURITY BOX ===== */
.security-box {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(192, 132, 252, 0.05));
    border: 1px solid var(--primary);
    border-left: 4px solid var(--accent);
    padding: 30px;
    margin: 25px 0;
}

.security-box h3 {
    margin-top: 0;
    border-left: none;
    padding-left: 0;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.product-card {
    background: rgba(26, 10, 46, 0.6);
    border: 1px solid var(--border-color);
    padding: 0;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-card-content {
    padding: 20px;
}

.product-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    margin: 0 0 10px;
    border-left: none;
    padding-left: 0;
    text-align: center;
}

.product-card p {
    font-size: 0.95em;
    margin: 0 0 10px;
}

.product-card .rating {
    color: var(--accent);
    font-size: 0.9em;
}

/* ===== IMAGES ===== */
.image-wrapper {
    margin: 30px 0;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.image-wrapper::before,
.image-wrapper::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    z-index: 1;
}

.image-wrapper::before {
    top: 5px;
    left: 5px;
    border-right: none;
    border-bottom: none;
}

.image-wrapper::after {
    bottom: 5px;
    right: 5px;
    border-left: none;
    border-top: none;
}

.image-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

/* ===== UPDATE LOG ===== */
.update-log {
    margin: 25px 0;
}

.update-log li {
    padding: 15px 0 15px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.update-log li::before {
    display: none;
}

.update-log li strong {
    font-family: 'Fira Code', monospace;
    background: var(--chrome-dark);
    border: 1px solid var(--primary);
    padding: 5px 12px;
    font-size: 0.85em;
    white-space: nowrap;
}

/* ===== FOOTER ===== */
footer {
    background: var(--metal-purple);
    border-top: 2px solid var(--primary);
    padding: 50px 40px;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
}

footer p {
    color: var(--text-muted);
    font-size: 0.95em;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

footer p:first-child {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
        text-align: center;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li a {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    .hero {
        padding: 50px 20px;
    }

    .container {
        padding: 20px;
    }

    .section-header {
        padding: 20px 25px;
    }

    .section-content {
        padding: 25px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .corner-decor {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3em;
        letter-spacing: 3px;
    }

    nav ul li a {
        padding: 8px 10px;
        font-size: 0.8em;
    }

    .section-header h2 {
        font-size: 1.1em;
        letter-spacing: 1px;
    }

    h3 {
        font-size: 1em;
    }
}