/* ===========================================================
   Cortical Robotics — Defense & JADC3P Sections
   =========================================================== */

/* --- Section Labels & Alternating Backgrounds --- */
.section-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-dark-alt {
    background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0) 100%);
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* --- Hero Grid Background --- */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74,163,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,163,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
    z-index: 0;
}

/* --- Hero Mini Architecture Diagram --- */
.hero-arch-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}
.ham-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    color: #e6e6e6;
    border: 1px solid rgba(74,163,255,0.2);
    background: rgba(74,163,255,0.06);
    text-align: center;
}
.ham-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #f0f0f0;
}
.ham-label-sm {
    font-family: 'Inter', sans-serif;
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #e0e0e0;
    line-height: 1.3;
}
.ham-node small {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(74,163,255,0.6);
    margin-top: 2px;
    text-transform: uppercase;
}
.ham-mce { border-color: rgba(74,163,255,0.4); background: rgba(74,163,255,0.12); min-width: 180px; }
.ham-tfl { border-color: rgba(74,163,255,0.3); background: rgba(74,163,255,0.08); min-width: auto; padding: 0.5rem 0.8rem; }
.ham-ace { border-color: rgba(74,163,255,0.2); background: rgba(74,163,255,0.04); padding: 0.35rem 0.4rem; min-width: auto; }
.ham-line {
    width: 2px;
    height: 14px;
    background: rgba(74,163,255,0.25);
}
.ham-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.ham-hw-row {
    gap: 0.6rem;
    font-size: 0.9rem;
    color: rgba(74,163,255,0.5);
}
.ham-hw-icon {
    width: 1em;
    height: 1em;
    color: inherit;
}
.ham-tfl-row {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.ham-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.6rem;
    border: 1px solid rgba(74,163,255,0.06);
    border-radius: 10px;
    background: rgba(74,163,255,0.02);
}

/* --- Problem Cards --- */
.problem-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.problem-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74,163,255,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.problem-icon {
    font-size: 2.2rem;
    color: var(--accent);
    opacity: 0.8;
}

/* --- Highlight Boxes --- */
.highlight-box {
    background: linear-gradient(135deg, rgba(74,163,255,0.08), rgba(74,163,255,0.02));
    border: 1px solid rgba(74,163,255,0.15);
}
.highlight-box-accent {
    background: linear-gradient(135deg, rgba(74,163,255,0.12), rgba(74,163,255,0.04));
    border: 1px solid rgba(74,163,255,0.25);
    border-radius: 10px;
}
.highlight-box-critical {
    background: linear-gradient(135deg, rgba(255,193,7,0.08), rgba(255,193,7,0.02));
    border: 1px solid rgba(255,193,7,0.2);
    border-radius: 10px;
}

/* --- Architecture Diagram --- */
.arch-diagram {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.arch-node-op {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    font-weight: 600;
    color: #e6e6e6;
}
.arch-vline {
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, rgba(74,163,255,0.4), rgba(74,163,255,0.15));
    margin: 0 auto;
}
.arch-vline-lg { height: 32px; }
.arch-vline-sm { height: 16px; }
.arch-layer {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.arch-layer:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.arch-layer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(74,163,255,0.06);
    border-bottom: 1px solid rgba(74,163,255,0.1);
}
.arch-layer-title-group {
    flex: 1;
}
.arch-layer-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f0f0f0;
}
.arch-layer-tagline {
    font-size: 0.78rem;
    color: rgba(74,163,255,0.7);
    margin-top: 0.15rem;
    font-style: italic;
}
.arch-layer-head h5 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #e6e6e6;
}
.arch-badge-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    background: rgba(74,163,255,0.1);
    color: var(--accent);
    border: 1px solid rgba(74,163,255,0.2);
}
.arch-badge-hw {
    background: rgba(255,255,255,0.05);
    color: var(--muted);
    border-color: rgba(255,255,255,0.1);
}
.arch-layer-body {
    padding: 1.2rem 1.5rem;
}
.text-light-muted {
    color: #b0b8c4;
    font-size: 0.88rem;
    line-height: 1.6;
}
.arch-flow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.arch-flow-label {
    font-size: 0.72rem;
    color: rgba(74,163,255,0.55);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 1rem;
    border: 1px solid rgba(74,163,255,0.12);
    border-radius: 20px;
    background: rgba(74,163,255,0.03);
}
.sg-badge-lg {
    padding: 0.8rem 1rem;
    text-align: center;
    line-height: 1.4;
}
.sg-sub, .ie-sub {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    display: block;
    margin-top: 0.25rem;
}
.hw-icons-lg {
    gap: 2rem;
}
.hw-icons-lg .hw-icon-item {
    font-size: 1.8rem;
}
.hw-icons-lg .hw-icon-svg {
    width: 1.8em;
    height: 1.8em;
}
.hw-icons-lg .hw-icon-item small {
    font-size: 0.72rem;
}
.arch-layer-mce {
    background: linear-gradient(180deg, rgba(74,163,255,0.04), rgba(74,163,255,0.01));
    border: 1px solid rgba(74,163,255,0.12);
}
.arch-layer-tfl {
    background: linear-gradient(180deg, rgba(74,163,255,0.03), rgba(74,163,255,0.008));
    border: 1px solid rgba(74,163,255,0.09);
}
.arch-layer-ace {
    background: linear-gradient(180deg, rgba(74,163,255,0.02), rgba(74,163,255,0.005));
    border: 1px solid rgba(74,163,255,0.07);
}
.arch-layer-hw {
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
    border: 1px solid rgba(255,255,255,0.05);
}
.arch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.arch-tags span {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(74,163,255,0.08);
    color: var(--accent);
    border: 1px solid rgba(74,163,255,0.15);
}
.sg-badge, .ie-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}
.sg-badge {
    background: rgba(220,53,69,0.08);
    border: 1px solid rgba(220,53,69,0.2);
    color: #f0a0a8;
}
.ie-badge-lg {
    background: rgba(255,193,7,0.08);
    border: 1px solid rgba(255,193,7,0.2);
    color: #ffd54f;
}
.hw-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.hw-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.4rem;
    color: rgba(74,163,255,0.5);
}
.hw-icon-item small {
    font-size: 0.65rem;
    color: var(--muted);
}
.hw-icon-svg {
    width: 1.4em;
    height: 1.4em;
    color: inherit;
    display: block;
}

/* --- Imagination Engine Pipeline --- */
.ie-pipeline {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ie-gate {
    display: flex;
    gap: 1.2rem;
    width: 100%;
    padding: 1.5rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.ie-gate:hover {
    transform: translateY(-4px);
    border-color: rgba(74,163,255,0.2);
}
.ie-gate-primary {
    background: linear-gradient(180deg, rgba(74,163,255,0.06), rgba(74,163,255,0.01));
    border-color: rgba(74,163,255,0.2);
    box-shadow: 0 0 30px rgba(74,163,255,0.06);
}
.ie-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.5;
    line-height: 1;
    min-width: 40px;
}
.ie-gate-primary .ie-num { opacity: 0.9; }
.ie-body { flex: 1; }
.ie-body h5 { color: #e6e6e6; font-size: 1rem; }
.ie-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(74,163,255,0.08);
    color: var(--accent);
    border: 1px solid rgba(74,163,255,0.15);
    margin-top: 0.5rem;
}
.ie-arrow {
    font-size: 1.2rem;
    color: rgba(74,163,255,0.3);
    padding: 0.3rem 0;
}
.ie-predicates {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.ie-pred {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
}
.ie-pred i { font-size: 1.1rem; margin-top: 2px; }
.ie-pred-goal {
    background: rgba(25,135,84,0.08);
    border: 1px solid rgba(25,135,84,0.2);
    color: #73c9a0;
}
.ie-pred-safety {
    background: rgba(220,53,69,0.06);
    border: 1px solid rgba(220,53,69,0.15);
    color: #f0a0a8;
}
.ie-stds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.ie-std {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    border: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* --- Safety Cards --- */
.safety-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.safety-card:hover {
    transform: translateY(-8px);
    border-color: rgba(220,53,69,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.safety-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}
.safety-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.6;
}
.safety-checks {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
}
.safety-checks li {
    padding: 0.25rem 0;
    padding-left: 1.2rem;
    position: relative;
    color: var(--muted);
}
.safety-checks li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.75rem;
}

/* --- Embodiment Cards --- */
.embodiment-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.embodiment-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74,163,255,0.25);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.embodiment-icon {
    font-size: 2rem;
    color: var(--accent);
    display: block;
}
.embodiment-icon-svg {
    width: 2.2rem;
    height: 2.2rem;
    color: var(--accent);
    display: block;
    margin: 0 auto 0.2rem;
    margin-bottom: 0.5rem;
}
.embodiment-card h6 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e6e6e6;
    margin-bottom: 0.2rem;
}

/* --- Mission Tags --- */
.mission-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.mission-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    background: rgba(74,163,255,0.06);
    border: 1px solid rgba(74,163,255,0.15);
    color: var(--accent);
    letter-spacing: 0.02em;
}

/* --- Comparison Table --- */
.comparison-table {
    color: #e6e6e6;
    font-size: 0.85rem;
    border-collapse: separate;
    border-spacing: 0;
}
.comparison-table thead th {
    background: rgba(255,255,255,0.05);
    border-bottom: 2px solid rgba(74,163,255,0.2);
    padding: 0.8rem;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    color: #c0c0c0;
}
.comparison-table tbody td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    vertical-align: middle;
    color: #b0b0b0;
    background: rgba(255,255,255,0.015);
}
.comparison-table tbody tr:hover td {
    background: rgba(255,255,255,0.03);
}
.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: #e0e0e0;
    background: rgba(255,255,255,0.025);
}
.comparison-table .td-cortical {
    color: var(--accent);
    font-weight: 600;
    background: rgba(74,163,255,0.06);
}
.comparison-table .th-cortical {
    background: rgba(74,163,255,0.1) !important;
    color: var(--accent) !important;
    border-bottom-color: var(--accent) !important;
}

/* --- Demo Section --- */
.demo-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.demo-features li {
    padding: 0.5rem 0;
    color: #d0d0d0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.demo-video-placeholder {
    aspect-ratio: 16/9;
    border-radius: 12px;
    border: 2px dashed rgba(74,163,255,0.2);
    background: rgba(74,163,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}
.demo-video-placeholder:hover {
    border-color: rgba(74,163,255,0.4);
}
.demo-video-inner {
    text-align: center;
    color: var(--muted);
}
.demo-video-inner i {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.5;
    display: block;
    margin-bottom: 0.8rem;
}
.demo-video-inner p {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

/* --- Metrics Strip --- */
.metrics-strip {
    background: linear-gradient(90deg, rgba(74,163,255,0.06), rgba(74,163,255,0.02), rgba(74,163,255,0.06));
    border-top: 1px solid rgba(74,163,255,0.1);
    border-bottom: 1px solid rgba(74,163,255,0.1);
}
.metric-item {
    padding: 1rem 0.5rem;
}
.metric-num {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}
.metric-item small {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
}

/* --- Defense CTA Card --- */
.defense-cta-card {
    background: linear-gradient(135deg, rgba(74,163,255,0.08), rgba(74,163,255,0.02));
    border: 1px solid rgba(74,163,255,0.2);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(74,163,255,0.06);
}

/* --- Price Cards (additions) --- */
.price-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: transform 0.4s ease, border-color 0.4s ease;
    color: #e6e6e6;
}
.price-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74,163,255,0.25);
}
.price-card-featured {
    border-color: rgba(74,163,255,0.35);
    background: linear-gradient(180deg, rgba(74,163,255,0.06), rgba(255,255,255,0));
    box-shadow: 0 0 25px rgba(74,163,255,0.1);
}
.price-amount {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0 0.2rem;
    letter-spacing: -0.02em;
}
.currency-toggle {
    display: inline-flex;
    gap: 0.4rem;
}
.currency-toggle .currency-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.9rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    background: transparent;
    transition: all 0.25s ease;
}
.currency-toggle .currency-btn:hover {
    color: #fff;
    border-color: rgba(74,163,255,0.4);
}
.currency-toggle .currency-btn.active {
    background: rgba(74,163,255,0.15);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

/* --- Advisor Cards --- */
.advisor-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.advisor-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74,163,255,0.15);
}

/* --- CTA Strip Cards --- */
.cta-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.cta-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74,163,255,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.cta-icon {
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.7;
}

/* --- Nav Pills for Pricing --- */
.nav-pills .nav-link {
    color: var(--muted);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
}
.nav-pills .nav-link.active {
    background: rgba(74,163,255,0.12);
    border-color: rgba(74,163,255,0.3);
    color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .arch-layer-head { flex-direction: column; gap: 0.5rem; text-align: center; }
    .arch-layer-head h5 { font-size: 0.8rem; }
    .arch-layer-name { font-size: 0.95rem; }
    .arch-layer-tagline { font-size: 0.7rem; }
    .arch-flow-label { font-size: 0.62rem; padding: 0.15rem 0.7rem; }
    .hw-icons-lg { gap: 1rem; }
    .hw-icons-lg .hw-icon-item { font-size: 1.3rem; }
    .ie-gate { flex-direction: column; text-align: center; }
    .ie-num { font-size: 1.4rem; }
    .ie-predicates { align-items: center; }
    .ie-pred { flex-direction: column; text-align: center; }
    .hw-icons { gap: 0.8rem; }
    .hw-icon-item { font-size: 1.1rem; }
    .metric-num { font-size: 1.3rem; }
    .embodiment-card { padding: 0.6rem !important; }
    .embodiment-icon { font-size: 1.5rem; }
    .embodiment-icon-svg { width: 1.6rem; height: 1.6rem; }
    .comparison-table { font-size: 0.7rem; }
    .hero-title { font-size: 1.6rem; }
}

/* --- Section Title Override — readable font --- */
.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}
