/* CainCyberLabs - Compliance Compass V2.3 Stylesheet (Pink/Magenta Theme) */

/* ============== VARIABLES & GLOBAL STYLES ============== */
:root {
    /* Primary Accent: Shifted from Neon Cyan to Neon Pink */
    --primary-accent: #ff64d2;
    
    /* Backgrounds: Shifted from Dark Navy to Deep Plum/Dark Magenta */
    --background-dark: #1f0a16;
    --background-light: #2d1222;
    --background-panel-translucent: rgba(45, 18, 34, 0.75);
    
    /* Shadows & Text: Warmer tones to match the pink hue */
    --shadow-color: rgba(27, 2, 12, 0.7);
    --text-light: #f6ccd9;
    --text-medium: #b08899;
    --heading-color: #ffe6f0;
    
    /* Borders */
    --panel-border: rgba(255, 100, 210, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    background-color: var(--background-dark);
    margin: 0;
    font-size: 16px;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* ============== TYPOGRAPHY ============== */
h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--heading-color); margin-top: 0; }
h1 { font-size: 2.8rem; margin-bottom: 0.5rem; text-shadow: 0 0 15px rgba(255, 100, 210, 0.1); }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--panel-border); padding-bottom: 0.5rem; }
h3 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--text-light); }
p { margin-top: 0; margin-bottom: 1rem; color: var(--text-medium); }
ul { padding-left: 20px; color: var(--text-light); }
li { margin-bottom: 0.75rem; }
a { color: var(--primary-accent); text-decoration: none; }
strong { color: var(--text-light); }

/* ============== LAYOUT & SECTIONS ============== */
.navbar {
    background-color: rgba(31, 10, 22, 0.95);
    padding: 1rem 0;
    border-bottom: 1px solid var(--panel-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar-brand { font-weight: bold; font-size: 1.5rem; color: var(--heading-color); }
.nav-links a { margin-left: 1.5rem; font-weight: 500; color: var(--text-light); }
.nav-links a:hover { color: var(--primary-accent); }

/* --- HERO SECTION WITH ANIMATED GRID --- */
.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 6rem 0;
    /* Updated radial gradient to match new background vars */
    background: radial-gradient(circle at 50% 50%, #2d1222 0%, #1f0a16 100%);
}

.hero::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(255, 100, 210, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 100, 210, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

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

.hero p { font-size: 1.25rem; max-width: 700px; margin: 1rem auto 2rem auto; }

main { padding-top: 2rem; }

.content-panel {
    background-color: var(--background-panel-translucent);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px -15px var(--shadow-color);
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}
.content-panel:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -15px var(--shadow-color); }

footer { text-align: center; padding: 2rem 0; margin-top: 2rem; font-size: 0.9em; }

/* Centering utility for paragraphs in specific sections */
.hero p, footer p, .cta-panel p, #credibility p { margin-left: auto; margin-right: auto; }

/* ============== BUTTONS ============== */
.cta-button {
    display: inline-block;
    background-color: var(--primary-accent);
    color: var(--background-dark);
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.25rem;
    font-weight: 700;
    border: 1px solid var(--primary-accent);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-top: 1.5rem;
}
.cta-button:hover { background-color: transparent; color: var(--primary-accent); }

/* The fix for the outline "Request Demo" button */
.cta-button.outline {
    background-color: transparent;
    color: var(--primary-accent);
    border: 1px solid var(--primary-accent);
}
.cta-button.outline:hover {
    background-color: rgba(255, 100, 210, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

/* ============== TERMINAL WINDOW ============== */
/* Adjusted hardcoded hex values to match pink/purple theme */
.terminal-window {
    background-color: #1b020e; /* Deep purple-black */
    border: 1px solid #54233b; /* Muted magenta border */
    border-radius: 8px;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 800px;
    margin: 3rem auto 0 auto;
    text-align: left;
    position: relative;
    z-index: 10;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    overflow: hidden;
}

.terminal-header {
    background-color: #2d1222; /* Matches bg-light */
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #54233b;
}

.terminal-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.terminal-body { padding: 20px; color: #d1a8c0; line-height: 1.6; }
.cmd { color: #fff; }
.highlight { color: #ff64d2; } /* Matches primary accent */
.success { color: #ff64d2; font-weight: bold; } /* Matches primary accent */
.fail { color: #ff5f56; font-weight: bold; }

/* ============== ICONS & ANIMATIONS ============== */
h2 svg, h3 svg { width: 28px; height: 28px; margin-right: 12px; vertical-align: middle; color: var(--primary-accent); }
.cta-list li svg { width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; }
.fade-in-section { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    h1 { font-size: 2.2rem; }
    .terminal-body { font-size: 0.8rem; }
}
