/* --- Core Theme Settings --- */
:root {
    --bg-obsidian: #0A0A0B;
    --bg-surface: #121214;
    --bg-surface-hover: #1A1A1E;
    --accent-gold: #D4AF37;
    --text-primary: #FFFFFF;
    --text-muted: #8F8F94;
    --border-color: rgba(212, 175, 55, 0.15);
    --border-hover: rgba(212, 175, 55, 0.4);
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-obsidian);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Particles Background Layer */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Global Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Header / Navigation Bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* --- Logo Wrapper Positioning Matrix --- */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 14px; /* Perfectly spaces the uploaded SVG from your text */
}

.logo-icon {
    display: block;
    flex-shrink: 0; /* Prevents the SVG from warping or squeezing on smaller layouts */
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.logo-text span {
    color: var(--accent-gold);
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 3.5px;
    margin-top: 2px;
    text-transform: uppercase;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-gold);
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-top: -2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-primary);
}

.btn-portal {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 18px;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-portal:hover {
    background: var(--accent-gold);
    color: var(--bg-obsidian);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Hero Canvas */
.hero {
    padding: 150px 0 75px 0;
    position: relative;
    text-align: center;
}

.hero-pre {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A3A3A3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 760px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-obsidian);
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 4px;
    transition: border-color 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

/* =======================================
   FORCED BRANDED SCROLLBAR FOR DESKTOP & MOBILE
   ======================================= */

/* 1. Target the main root HTML and Body wrappers explicitly */
html, body {
    scrollbar-width: thin !important;
    scrollbar-color: #D4AF37 #0A0A0B !important;
}

/* 2. Webkit Engine Force (Chrome, Safari, Edge, Opera, Brave) */
::-webkit-scrollbar {
    width: 10px !important;
    height: 10px !important;
    display: block !important;
}

/* Force the obsidian track background */
::-webkit-scrollbar-track {
    background: #0A0A0B !important;
    background-color: #0A0A0B !important;
}

/* Force the premium gold handle */
::-webkit-scrollbar-thumb {
    background: #D4AF37 !important;
    background-color: #D4AF37 !important;
    border-radius: 4px !important;
    border: 2px solid #0A0A0B !important;
}

/* Hover state styling */
::-webkit-scrollbar-thumb:hover {
    background: #B89324 !important;
    background-color: #B89324 !important;
}

/* Sector Matrix Section */
.sectors-section {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 48px;
}

.matrix-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.tab-btn {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
    border-color: var(--accent-gold);
    color: var(--text-primary);
    background: rgba(212, 175, 55, 0.03);
}

.matrix-content {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.matrix-content.active {
    display: grid;
}

.branch-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.branch-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--bg-surface-hover);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.branch-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.branch-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* --- Interactive Diagnostic Section --- */
.diagnostic-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-obsidian) 0%, #0e0e10 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.diagnostic-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
}

.diagnostic-card h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
}

.diagnostic-card p {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

/* Lead Verification Fields */
.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 12px;
}

.text-input {
    width: 100%;
    background: var(--bg-obsidian);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.option-box {
    background: var(--bg-obsidian);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-box:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.02);
}

.option-box.selected {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
}

.diagnostic-submit {
    display: block;
    width: 100%;
    background: var(--accent-gold);
    color: var(--bg-obsidian);
    padding: 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 40px;
    transition: background 0.3s ease;
}

.diagnostic-submit:hover {
    background: #f1c43f;
}

/* Footer Layout */
footer {
    background: #050506;
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-desc p {
    color: var(--text-muted);
    margin-top: 12px;
    font-weight: 300;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.75rem;
}

@media (max-width: 992px) {
    .matrix-tabs { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 576px) {
    .matrix-tabs { grid-template-columns: 1fr; }
    .input-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2rem; }
    .diagnostic-card { padding: 24px; }
}