/* --- Variables --- */
:root {
    --bg-primary: #0A0F1E;
    --bg-secondary: #161B2D;
    --accent-cyan: #00F2FF;
    --accent-green: #39FF14;
    --accent-violet: #8A2BE2; /* For GateNight */
    --text-main: #E0E6ED;
    --text-muted: #8E9BB0;
    --glass-bg: rgba(22, 27, 45, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

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

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(90deg, var(--text-main), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.radar-line {
    height: 2px;
    width: 60px;
    background: var(--accent-cyan);
    margin: 0.5rem auto 0;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.text-accent-1 { color: var(--accent-cyan); }
.text-accent-2 { color: var(--accent-green); }
.text-center { text-align: center; }

/* --- Components --- */

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px; /* Harder edges for tech feel */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-glow {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: inset 0 0 10px rgba(0, 242, 255, 0.2), 0 0 10px rgba(0, 242, 255, 0.2);
}

.btn-glow:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline.cyan:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.btn-outline.violet:hover {
    border-color: var(--accent-violet);
    color: var(--accent-violet);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

/* --- Header / Nav --- */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-header.transparent {
    z-index: 5;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
}

.logo img {
    filter: invert(1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}

/* --- Sections --- */
section {
    padding: 6rem 0;
}

section.container {
    margin: 6rem auto;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

#vanta-bg {
    width: 100%;
    height: 160vh;
    position: absolute;
    top: -30vh;
    left: 0;
    z-index: 1;
}

#hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

.hud-bracket-hero {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-cyan);
    z-index: 15;
    filter: drop-shadow(0 0 5px var(--accent-cyan));
}
.hud-bracket-hero.top-left { top: 40px; left: 40px; border-right: none; border-bottom: none; }
.hud-bracket-hero.top-right { top: 40px; right: 40px; border-left: none; border-bottom: none; }
.hud-bracket-hero.bottom-left { bottom: 40px; left: 40px; border-right: none; border-top: none; }
.hud-bracket-hero.bottom-right { bottom: 40px; right: 40px; border-left: none; border-top: none; }

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content .mission {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    /* max-width: 600px; */
    margin: 1.5rem auto 1rem;
    opacity: 0.8;
}

.status-bar {
    margin: 0 auto 2.5rem;
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    background: rgba(0, 242, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-main);
}

.dot {
    height: 8px;
    width: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Products Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.product-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 3rem 2rem;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.product-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* CaptainAI Specifics */
.product-card.captain-ai {
    background: linear-gradient(135deg, rgba(22, 27, 45, 0.8) 0%, rgba(0, 30, 40, 0.8) 100%);
}

.product-card.captain-ai:hover {
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15);
    border-color: rgba(0, 242, 255, 0.3);
}

.product-card.captain-ai .card-icon { color: var(--accent-cyan); }

/* HUD Brackets */
.hud-bracket {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-card.captain-ai:hover .hud-bracket {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.hud-bracket.top-left { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.hud-bracket.top-right { top: 15px; right: 15px; border-left: none; border-bottom: none; }
.hud-bracket.bottom-left { bottom: 15px; left: 15px; border-right: none; border-top: none; }
.hud-bracket.bottom-right { bottom: 15px; right: 15px; border-left: none; border-top: none; }

/* GateNight Specifics */
.product-card.gate-night {
    background: linear-gradient(135deg, rgba(22, 27, 45, 0.8) 0%, rgba(30, 20, 45, 0.8) 100%);
}

.product-card.gate-night:hover {
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.3);
}

.product-card.gate-night .card-icon { color: var(--accent-violet); }

.route-map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 100% 0%, rgba(138, 43, 226, 0.05) 0%, transparent 50%),
                      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><path d="M-50,150 Q100,50 250,200 T550,100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="2" stroke-dasharray="5,5"/></svg>');
    z-index: 0;
    pointer-events: none;
}

.product-card.gate-night * { position: relative; z-index: 1; }

/* --- About & Contact --- */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.tagline {
    font-style: italic;
    margin-top: 1.5rem;
    font-weight: 600;
}

.tagline-mb {
    margin-top: 0;
    margin-bottom: 1.5rem;
}


.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.text-4xl { font-size: 2.5rem; }

/* --- Footer --- */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info .logo {
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact h4, .footer-social h4 {
    color: var(--text-main);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.social-icons a:hover {
    color: var(--text-main);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: var(--accent-cyan);
}

/* --- Legal Pages --- */
.legal-page main.container {
    max-width: 800px;
    width: 100%;
}

@media (min-width: 1000px) {
    .legal-page main.container {
        max-width: 80vw;
    }
}

.legal-page main h1 { margin-top: 2rem; }
.legal-page main h2 { margin-top: 2rem; }
.legal-page main p { margin-bottom: 1rem; }
.legal-page main ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}
.legal-page main ul ul {
    margin-left: 2rem;
    list-style-type: circle;
}
.legal-page main li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Could add a hamburger menu */
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 1.6rem; }

    .product-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
