:root {
    --true-black: #050505;
    --recessed-black: #0c0c0d;
    --gunmetal-gray: #1E2022;
    --tactical-gold: #D4AF37;
    --muted-gray: #95989A;
    --bright-white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--true-black); color: var(--bright-white); color-scheme: dark; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    z-index: 10001;
    padding: 12px 20px;
    background: var(--tactical-gold);
    color: var(--true-black);
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
}

:focus-visible {
    outline: 2px solid var(--tactical-gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pulse-dot { animation: none; }
}

/* Page background */
.carbon-bg {
    background-color: var(--true-black);
}

/* Nav Interface */
.navbar {
    background: var(--recessed-black);
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.logo-img { height: 48px; width: auto; display: block; flex-shrink: 0; }
.logo-text { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.4rem; letter-spacing: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text span { color: var(--tactical-gold); }
.lang-toggle {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}
.lang-btn {
    background: none;
    border: 1px solid var(--gunmetal-gray);
    color: var(--muted-gray);
    padding: 8px 14px;
    min-width: 44px;
    min-height: 44px;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
}
.lang-btn.active { border-color: var(--tactical-gold); color: var(--tactical-gold); background: rgba(212, 175, 55, 0.03); }

/* Modular Block Controls */
section { padding: 120px 10%; border-bottom: 1px solid var(--gunmetal-gray); }
.section-title { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; letter-spacing: 4px; margin-bottom: 60px; color: var(--tactical-gold); position: relative; }

/* Hero Presentation Layout */
.hero {
    position: relative;
    isolation: isolate;
    padding-top: 220px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--true-black);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(rgba(5, 5, 5, 0.5), rgba(5, 5, 5, 0.72));
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 2;
}
.hero h1 { font-family: 'Orbitron', system-ui, sans-serif; font-size: 4rem; font-weight: 900; line-height: 1.05; margin-bottom: 24px; letter-spacing: -1px; }
.hero p { font-size: 1.25rem; color: var(--muted-gray); max-width: 800px; line-height: 1.65; margin-bottom: 48px; }
.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

.btn-cta { display: inline-block; background: var(--tactical-gold); color: var(--true-black); padding: 18px 40px; font-weight: 800; text-decoration: none; letter-spacing: 1px; font-size: 0.95rem; border-radius: 1px; transition: transform 0.2s, background 0.2s; }
.btn-cta:hover { transform: translateY(-2px); background: #edd06b; }

.pulse-container { display: flex; align-items: center; gap: 10px; }
.mono-label { font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; color: var(--tactical-gold); letter-spacing: 1px; }
.pulse-dot { width: 8px; height: 8px; background: var(--tactical-gold); border-radius: 50%; animation: pulse-glow 1.8s infinite; }
@keyframes pulse-glow { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }

/* Performance Logs Grid Layout */
.dashboard-metrics { background: var(--true-black); }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.metric-card { background: var(--recessed-black); border-left: 2px solid var(--tactical-gold); padding: 32px; }
.metric-num { font-family: 'Share Tech Mono', monospace; font-size: 3rem; font-weight: bold; color: var(--tactical-gold); margin-bottom: 12px; }
.metric-card h3 { font-family: 'Orbitron', sans-serif; font-size: 1rem; margin-bottom: 12px; font-weight: 700; letter-spacing: 1px; }
.metric-card p { color: var(--muted-gray); font-size: 0.9rem; line-height: 1.5; }

/* Knowledge Nuggets — RAG-chunkable fact modules */
.knowledge-hub { background: var(--recessed-black); }
.nugget-list { list-style: none; display: flex; flex-direction: column; gap: 16px; max-width: 960px; }
.nugget-list li {
    border-left: 3px solid var(--tactical-gold);
    padding: 16px 20px;
    background: var(--true-black);
    color: var(--bright-white);
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: 'Share Tech Mono', monospace;
}

/* Bilingual terminology index */
.term-glossary { background: #020202; }
.term-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; max-width: 960px; }
.term-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 20px;
    background: var(--recessed-black);
    border: 1px solid rgba(212, 175, 55, 0.12);
}
.term-pair dt { font-weight: 700; color: var(--bright-white); font-size: 0.9rem; }
.term-pair dd { color: var(--tactical-gold); font-size: 0.9rem; margin: 0; }

/* Deep-Dive Feature Flow Layout */
.deep-dive { background: #020202; }
.features-detailed { display: flex; flex-direction: column; gap: 80px; }
.dive-row { display: flex; gap: 60px; align-items: center; }
.dive-row.reverse { flex-direction: row-reverse; }
.dive-text { flex: 1; }
.dive-text h3 { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; margin-bottom: 20px; font-weight: 800; letter-spacing: 1px; }
.dive-text p { color: var(--muted-gray); font-size: 1.05rem; line-height: 1.7; text-align: justify; }

/* FAQ Accordion Architecture */
.faq-hub { background: var(--true-black); }
.accordion-group { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.accordion-item { background: var(--recessed-black); border: 1px solid rgba(255, 255, 255, 0.03); }
.accordion-heading { font-size: inherit; font-weight: inherit; margin: 0; }
.accordion-trigger { width: 100%; padding: 24px; background: none; border: none; color: white; font-size: 1.1rem; font-weight: 600; text-align: left; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: color 0.2s; }
.accordion-trigger:hover { color: var(--tactical-gold); }
.accordion-content { max-height: 0; overflow: hidden; padding: 0 24px; color: var(--muted-gray); font-size: 1rem; line-height: 1.65; transition: max-height 0.25s ease, padding 0.25s ease; }
.symbol { font-family: 'Share Tech Mono', monospace; color: var(--tactical-gold); font-size: 1.2rem; }

/* Acquisition Conversion Box */
.acquisition { background: var(--recessed-black); }
.form-wrapper { max-width: 650px; margin: 0 auto; }
.form-wrapper h2 { font-family: 'Orbitron', sans-serif; font-size: 2.2rem; margin-bottom: 16px; text-align: center; letter-spacing: 2px; }
.form-wrapper p { color: var(--muted-gray); text-align: center; margin-bottom: 40px; line-height: 1.6; }
.tactical-lead-form { display: flex; flex-direction: column; gap: 24px; }
.input-container { display: flex; flex-direction: column; gap: 8px; }
.input-container label { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--tactical-gold); letter-spacing: 1px; }
.input-container input, .input-container select { background: var(--true-black); border: 1px solid var(--gunmetal-gray); padding: 16px; color: white; font-size: 1rem; border-radius: 1px; }
.input-container input:focus, .input-container select:focus { border-color: var(--tactical-gold); outline: none; }

.btn-submit { background: transparent; border: 1px solid var(--tactical-gold); color: var(--tactical-gold); padding: 18px; font-weight: bold; width: 100%; cursor: pointer; font-size: 1rem; letter-spacing: 1px; transition: background 0.2s, color 0.2s; margin-top: 12px; }
.btn-submit:hover { background: var(--tactical-gold); color: var(--true-black); }

.form-response { display: none; margin-top: 24px; padding: 16px; font-family: 'Share Tech Mono', monospace; font-size: 0.95rem; text-align: center; border-radius: 1px; }
.form-response.success { display: block; background: rgba(39, 174, 96, 0.08); border: 1px solid #27ae60; color: #27ae60; }

/* Footer Design layout */
footer { background: var(--true-black); padding: 48px 5%; border-top: 1px solid var(--gunmetal-gray); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--muted-gray); flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted-gray); text-decoration: none; margin-left: 24px; }
footer a:hover { color: var(--tactical-gold); }

footer .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin: 12px 0;
}
footer .social-link {
    color: var(--muted-gray);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.5px;
}
footer .social-link:hover {
    color: var(--tactical-gold);
}

/* Privacy policy page */
.privacy-shell { min-height: 100vh; padding: 120px 5% 80px; }
.privacy-shell { padding-top: 100px; }
.navbar .top-nav .policy-link { color: var(--tactical-gold); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.navbar .top-nav .policy-link:hover { text-decoration: underline; }
.privacy-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--recessed-black);
    border: 1px solid var(--gunmetal-gray);
    padding: 40px;
    line-height: 1.7;
}
.privacy-card h1 { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; margin-bottom: 24px; color: var(--tactical-gold); }
.privacy-card ul { margin: 16px 0 24px 1.25rem; color: var(--muted-gray); }
.privacy-card li { margin-bottom: 10px; }
.privacy-card p { color: var(--muted-gray); margin-bottom: 16px; }
.policy-link { color: var(--tactical-gold); text-decoration: none; font-weight: 600; }
.policy-link:hover { text-decoration: underline; }

/* Responsive Adaptations */
@media (max-width: 992px) {
    .dive-row, .dive-row.reverse { flex-direction: column; gap: 32px; }
    .hero h1 { font-size: 2.8rem; }
    section { padding: 80px 6%; }
}

@media (max-width: 640px) {
    .navbar { padding: 12px 16px; }
    .logo { gap: 10px; }
    .logo-img { height: 40px; }
    .logo-text {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }
    .lang-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .hero { padding-top: 190px; }
}

@media (max-width: 420px) {
    .logo { gap: 8px; }
    .logo-img { height: 36px; }
    .logo-text {
        font-size: 0.7rem;
        letter-spacing: 0.25px;
    }
    .lang-btn {
        padding: 6px 10px;
        min-width: 40px;
        min-height: 40px;
        font-size: 0.75rem;
    }
}