:root {
    --bg-main: #000000;       
    --bg-card: #000000;       /* Force cards/headers using this variable to match pure black too */
    --border-color: #21262d;   
    --text-primary: #c9d1d9;
    --text-muted: #8b949e;
    --stingpoint-green: #00bc00; 
    --hover-bright: #ffffff;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid var(--border-color);
    background-color: #000000 !important; /* The !important tag forces the browser to prioritize this color */
}

.brand-logo {
    height: 45px; /* Ensures scaling fits nicely in the upper bar */
    display: block;
}

nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 12px;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--hover-bright);
}

.nav-link.active {
    color: var(--stingpoint-green);
    border-color: var(--stingpoint-green);
}

/* Main Layout Elements */
main {
    padding: 40px 5%;
}

.content-container {
    max-width: 1100px;
    margin: 0 auto;
}

.page-title {
    color: var(--stingpoint-green);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.cta-container {
    margin-top: 30px;
}

.btn-primary {
    background-color: transparent;
    color: var(--stingpoint-green);
    border: 2px solid var(--stingpoint-green);
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--stingpoint-green);
    color: #000000;
}

/* Grid Layout Cards */
.services-brief {
    margin-top: 60px;
}

.services-brief h2 {
    text-align: center;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 30px;
    transition: border-color 0.2s ease;
}

.card:hover {
    border-color: var(--stingpoint-green);
}

.card h3 {
    color: var(--text-primary);
    margin-top: 0;
    font-size: 1.3rem;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--stingpoint-green);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Detailed Capabilities Layout */
.service-block {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.service-header h2 {
    margin: 0;
    font-size: 1.6rem;
}

.badge {
    background-color: rgba(0, 188, 0, 0.1);
    color: var(--stingpoint-green);
    border: 1px solid var(--stingpoint-green);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.service-block h3 {
    color: var(--stingpoint-green);
    font-size: 1.15rem;
    margin-top: 25px;
}

ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

li {
    margin-bottom: 8px;
}

/* Data Tables */
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
}

.matrix-table th, .matrix-table td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}

.matrix-table th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-weight: 600;
}

.matrix-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.01);
}
/* Global Footer Styling */
footer {
    background-color: #000000;
    border-top: 1px solid var(--border-color);
    padding: 40px 5%;
    margin-top: 60px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start; /* Aligns the SP text perfectly with the top line of verbiage */
    gap: 35px;
}

.footer-brand {
    min-width: 60px;
    line-height: 1; /* Eliminates hidden vertical padding */
}

/* Styled text logo */
.footer-sp-text {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Tactical Green Accent for the S */
.green-tint {
    color: var(--stingpoint-green);
}

.footer-content {
    flex: 1;
}

.footer-tagline {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0 0 6px 0;
}

.footer-sub-tagline {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #8b949e;
    margin: 0;
    max-width: 900px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Responsive alignment for mobile displays */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
    }
}