:root {
    --bg-dark: #0f0b16; /* Deep Midnight Purple */
    --bg-card: #1b1228; /* Darker Violet */
    --bg-accent: #2d0e4a; /* Royal Purple */
    --accent: #f0c23a; /* Brighter, more metallic Gold */
    --accent-glow: rgba(240, 194, 58, 0.4);
    --text-main: #ffffff;
    --text-dim: #c5bed0;
    --border: rgba(240, 194, 58, 0.25);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --gradient-purple: linear-gradient(135deg, #2d0e4a 0%, #4b0082 100%);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

span.highlight {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Nav */
nav {
    padding: 1.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(15, 11, 22, 0.85);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logo-img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Hero Section */
.hero {
    padding: 14rem 0 10rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, var(--bg-accent) 0%, var(--bg-dark) 70%);
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-dim);
    max-width: 650px;
    margin-bottom: 3.5rem;
}

/* Services Grid */
.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3.5rem 2.5rem;
    border-radius: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-gold);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    display: block;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

/* Download Cards (CCTVSee.org Inspired) */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-bottom: 8rem;
}

.download-card {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
}

.card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.card-body {
    padding: 2.5rem 2rem;
}

.badge-gold {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.metadata {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dotted var(--border);
}

.metadata code { color: var(--accent); font-size: 0.7rem; }

/* Buttons */
.btn-gold {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: var(--accent);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 800;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    border: 1px solid var(--accent);
}

.btn-gold:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-outline {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Terminal View */
.terminal {
    background: #000;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    margin: 1.5rem 0;
}

.t-cmd { color: var(--accent); }
.t-comment { color: #5e5e6b; }

/* Footer */
footer {
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-contact h3 { color: var(--accent); margin-bottom: 1.5rem; }
.footer-contact p { margin-bottom: 0.5rem; color: var(--text-dim); }

@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 10rem 0 6rem; }
    .hero h1 { font-size: 2.5rem; }
    .services-grid, .download-grid { grid-template-columns: 1fr; }
}
