:root {
    --bg-main: #050505;
    --bg-secondary: rgba(15, 15, 20, 0.7);
    --text-primary: #f8f9fa;
    --text-secondary: #a0a0ab;
    --accent-primary: #00ff88;
    --accent-secondary: #8a2be2;
    --accent-tertiary: #00d2ff;
    --card-border: rgba(255, 255, 255, 0.05);
    --card-border-hover: rgba(0, 255, 136, 0.3);
    --glass-bg: rgba(20, 20, 25, 0.6);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s infinite alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-secondary);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-tertiary);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 80px) scale(0.9); }
}

/* Hero Section */
.hero-section {
    padding: 4rem 5% 2rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.hero-section h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #a0a0ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Tools Grid */
.tools-container {
    padding: 4rem 5% 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Tool Card */
.tool-card {
    position: relative;
    text-decoration: none;
    color: inherit;
    background: var(--glass-bg);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 255, 136, 0.06),
        transparent 40%
    );
}

.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 255, 136, 0.4),
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.tool-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 35, 0.8);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.tool-card:hover .card-border,
.tool-card:hover::before {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.tool-card:hover .icon-wrapper {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-primary);
    transform: scale(1.1) rotate(-5deg);
}

.tool-card:hover .icon-wrapper i {
    color: var(--accent-primary);
}

.tool-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.new { background: rgba(138, 43, 226, 0.15); color: #b366ff; border: 1px solid rgba(138, 43, 226, 0.3); }
.status-badge.active { background: rgba(0, 210, 255, 0.15); color: #00d2ff; border: 1px solid rgba(0, 210, 255, 0.3); }
.status-badge.safe { background: rgba(0, 255, 136, 0.15); color: var(--accent-primary); border: 1px solid rgba(0, 255, 136, 0.3); }
.status-badge.secure { background: rgba(255, 170, 0, 0.15); color: #ffaa00; border: 1px solid rgba(255, 170, 0, 0.3); }
.status-badge.fast { background: rgba(255, 51, 102, 0.15); color: #ff3366; border: 1px solid rgba(255, 51, 102, 0.3); }
.status-badge.developing { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); border: 1px solid rgba(255, 255, 255, 0.1); }

.launch-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.launch-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.tool-card:hover .launch-btn {
    color: var(--accent-primary);
}

.tool-card:hover .launch-btn i {
    transform: translateX(5px);
}

/* Placeholder Card */
.tool-card.placeholder {
    border-style: dashed;
    border-width: 2px;
    opacity: 0.6;
    pointer-events: none;
}

.tool-card.placeholder .icon-wrapper {
    border-style: dashed;
}

/* Responsive */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .tool-card {
        padding: 2rem;
    }
}


/* === GLOBAL HEADER, FOOTER & MOBILE NAV === */
/* Global Nav & Footer Styles for Pixel Defence */
.global-site-header {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    width: 100%;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}
.logo-icon { stroke: #00f0ff; }
.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}
.header-nav > a, .dropdown-trigger {
    text-decoration: none;
    color: #a0aec0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}
.header-nav > a:hover, .dropdown:hover .dropdown-trigger {
    color: #00f0ff;
}
.dropdown { position: relative; padding: 25px 0; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0d1326;
    border: 1px solid #1f2d45;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}
.dropdown-menu a:hover {
    background: rgba(0, 240, 255, 0.05);
    color: #00f0ff;
    border-left: 2px solid #00f0ff;
}
.mobile-menu-btn { display: none; cursor: pointer; color: #cbd5e1; background: none; border: none; padding: 4px; }
@media (max-width: 800px) {
    .header-nav { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
}
/* Mobile nav panel */
.mobile-nav-panel {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5,8,15,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9998;
    padding: 24px 20px;
    overflow-y: auto;
    border-top: 1px solid rgba(0,240,255,0.15);
    flex-direction: column;
    gap: 6px;
}
.mobile-nav-panel.open { display: flex; }
.mobile-nav-panel a {
    display: block;
    padding: 14px 16px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
}
.mobile-nav-panel a:hover, .mobile-nav-panel a:active {
    background: rgba(0,240,255,0.08);
    color: #00f0ff;
}
.mobile-nav-group-label {
    padding: 16px 16px 6px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}
.mobile-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 8px 0;
}

/* Global Footer Styles */
.global-site-footer {
    background: #05080f;
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    padding: 60px 20px 20px;
    margin-top: 80px;
    font-family: 'Inter', sans-serif;
    width: 100%;
}
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 50px;
    padding: 0 40px;
}
.footer-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}
.footer-socials a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-socials a:hover { color: #00f0ff; }
.footer-links-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}
.footer-links-grid a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.footer-links-grid a:hover { color: #60a5fa; text-decoration: underline; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}
@media (max-width: 600px) {
    .footer-top { flex-direction: column; align-items: center; text-align: center; padding: 0; }
    .footer-socials { grid-template-columns: 1fr; justify-items: center; text-align: left; }
}
