/*
 * ThreatPulsar — custom.css
 * Template: 2082_pure_mix (Bootstrap 3, FA4)
 * Accent: #dc2626 (red)
 * Theme: Dark — cybersecurity / SOC operations
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --accent: #dc2626;
    --accent-dark: #b91c1c;
    --accent-light: #fee2e2;
    --bg: #0d0f18;
    --surface: #151825;
    --surface2: #1c2033;
    --text: #e2e8f0;
    --text-muted: #8fabc4;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 10px;
    --nav-height: 72px;
    --bg-rgb: 13, 15, 24;
}

/* ============================================================
   BASE / BODY
   ============================================================ */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.85;
}

h1, h2, h3, h4, h5, h6 {
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--text);
}

h1 { font-size: 58px; font-weight: 700; line-height: 1.15; }
h2 { font-size: 40px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.4; }

p { color: var(--text); font-size: 18px; line-height: 1.85; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* ============================================================
   CONTAINER NARROW
   ============================================================ */
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

/* ============================================================
   SECTION SPACING
   ============================================================ */
.section {
    padding: 90px 0;
}

.section-alt {
    background-color: var(--surface);
}

.section-dark {
    background-color: var(--surface2);
    color: #e2e8f0;
}

.section-dark h2, .section-dark h3,
.section-dark p, .section-dark li {
    color: #e2e8f0 !important;
}

.section-dark .stat-label,
.section-dark .spec-label {
    color: #c8d6e5 !important;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-top: 8px;
}

.section-header p {
    max-width: 640px;
    margin: 16px auto 0;
    color: var(--text-muted);
}

/* ============================================================
   NAV — R72 + OVERLAY MENU (2082_pure_mix)
   ============================================================ */

/* R77: Nav cleanup */
.nav-item {
    margin-bottom: 0 !important;
    background-image: none !important;
}
.site-logo {
    max-width: none !important;
}
.btn-accent, .cta-primary, .cta-secondary {
    white-space: nowrap;
}

/* R72: Logo left, Menu right */
.navbar .row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}
.brand {
    float: none !important;
}
.navicon {
    float: none !important;
    margin-left: auto !important;
}

/* Nav logo */
.nav-logo {
    height: 36px;
    width: auto;
}

/* Menu trigger pill */
.menu-trigger {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 14px !important;
    border-radius: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08) !important;
}
.menu-trigger .icon {
    font-size: 20px;
    line-height: 1;
    color: var(--text);
}
.menu-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
}

/* Overlay menu: large text */
#nav-menu a {
    font-size: 36px !important;
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}
#nav-menu li.active a {
    color: var(--accent) !important;
    font-weight: 700 !important;
}
#nav-menu a:hover {
    color: var(--accent) !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    background-color: var(--bg);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,15,24,0.92) 0%, rgba(220,38,38,0.15) 100%);
    pointer-events: none !important;
}

/* R89: overlay must not block clicks */
.tm-bg-overlay,
[class*="overlay"] {
    pointer-events: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
    margin-top: 12px;
}

.hero-content p {
    font-size: 19px;
    color: #c8d6e5;
    line-height: 1.8;
    max-width: 620px;
    margin-bottom: 36px;
}

/* R79: hero container transparent */
.header-thumb {
    background: transparent !important;
    border: none !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-accent {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.2s ease;
    border: 2px solid var(--accent);
    white-space: nowrap;
}
.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #ffffff !important;
    text-decoration: none;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.5);
    transition: border-color 0.2s ease;
    white-space: nowrap;
}
.btn-outline:hover {
    border-color: #ffffff;
    color: #ffffff !important;
    text-decoration: none;
}

.btn-outline-light {
    display: inline-block;
    background-color: transparent;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.6);
    white-space: nowrap;
    transition: all 0.2s ease;
}
.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff !important;
    text-decoration: none;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--surface2);
    color: var(--text) !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid var(--border);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    text-decoration: none;
}

.btn-gap {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
    padding: 50px 0;
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 20px 24px;
    border-right: 1px solid var(--border);
}
.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s ease;
}
.feature-card:hover {
    border-color: var(--accent);
}

/* R87: uniform icon height */
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(220,38,38,0.12);
    border-radius: 8px;
    margin-bottom: 16px;
}

/* R81: force accent on all FA icons */
.feature-icon .fa,
.card-icon .fa,
.step-icon .fa {
    color: var(--accent) !important;
    font-size: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   STEPS (HOW IT WORKS) — R80
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.steps-5 {
    grid-template-columns: repeat(5, 1fr);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
}

.step-num {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 14px;
}

.step h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.step p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   USE CASE CARDS
   ============================================================ */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.usecase-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.usecase-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(220,38,38,0.12);
    border-radius: 8px;
    margin-bottom: 16px;
}

.usecase-icon .fa {
    color: var(--accent) !important;
    font-size: 20px;
}

.usecase-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.usecase-card p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 50%, var(--surface2) 100%);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(220,38,38,0.2);
}

.cta-content h2 {
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-content p {
    color: #c8d6e5;
    max-width: 560px;
    margin: 0 auto 32px;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
    background-color: var(--surface);
    padding: 100px 0 60px;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: 52px;
    color: var(--text);
    margin-top: 10px;
    margin-bottom: 18px;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 19px;
    max-width: 640px;
}

/* ============================================================
   PLATFORM VISUAL
   ============================================================ */
.platform-visual {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   CAPABILITY BLOCKS
   ============================================================ */
.capability-block {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}
.capability-block:last-child {
    border-bottom: none;
}

.capability-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(220,38,38,0.12);
    border-radius: 10px;
}

.capability-icon .fa {
    color: var(--accent) !important;
    font-size: 22px;
}

.capability-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.capability-body p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 10px;
}

/* ============================================================
   SPECS GRID
   ============================================================ */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.spec-item {
    text-align: center;
    padding: 28px 20px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.spec-val {
    font-size: 40px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 10px;
}

.spec-label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.pricing-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent);
    background-color: var(--surface2);
    transform: scale(1.02);
}

.pricing-card .badge {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.pricing-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.pricing-card .price span {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .price-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.pricing-card .features li {
    font-size: 15px;
    color: var(--text);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.pricing-card .features li:last-child {
    border-bottom: none;
}

.pricing-card .features li .fa-check {
    color: var(--accent) !important;
    width: 14px;
}

.pricing-card .features li .fa-times {
    color: #4a5568 !important;
    width: 14px;
}

.pricing-card .features li.unavailable {
    color: #4a5568;
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
}
.pricing-note p {
    font-size: 15px;
    color: var(--text-muted);
}

/* Comparison table */
.comparison-table .table {
    color: var(--text);
    border-color: var(--border);
}

.comparison-table .table thead th {
    background-color: var(--surface2);
    color: var(--text);
    border-color: var(--border);
    font-size: 15px;
}

.comparison-table .table td,
.comparison-table .table th {
    border-color: var(--border);
    padding: 12px 16px;
    font-size: 15px;
    vertical-align: middle;
}

.text-accent {
    color: var(--accent) !important;
}

/* FAQ */
.faq-list {
    margin-top: 20px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}

.faq-question .fa {
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.faq-question[aria-expanded="true"] .fa {
    transform: rotate(180deg);
}

.faq-answer {
    padding-bottom: 16px;
}

.faq-answer p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

/* ============================================================
   ABOUT PAGE — TIMELINE
   ============================================================ */
.timeline {
    position: relative;
    padding-left: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 3px solid var(--bg);
}

.timeline-date {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* VALUES */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.value-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(220,38,38,0.12);
    border-radius: 8px;
    margin-bottom: 16px;
}

.value-icon .fa {
    color: var(--accent) !important;
    font-size: 20px;
}

.value-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* CASE STUDY CARDS */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.case-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    color: #e2e8f0;
}

.case-industry {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 10px;
}

.case-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.case-card p {
    font-size: 15px;
    color: #8fabc4;
    line-height: 1.7;
    margin-bottom: 10px;
}

.case-metric {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 15px;
    color: #e2e8f0;
}

.metric-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-right: 8px;
}

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    justify-content: center;
}

.team-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
}

.team-avatar-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 18px;
    border: 3px solid var(--border);
    background-color: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

.team-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.team-role {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.team-bio {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* CULTURE GRID */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.culture-item {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.culture-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(220,38,38,0.12);
    border-radius: 8px;
    margin-bottom: 16px;
}

.culture-icon .fa {
    color: var(--accent) !important;
    font-size: 20px;
}

.culture-item h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.culture-item p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 20px;
}

.contact-channel {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
}

.channel-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(220,38,38,0.12);
    border-radius: 10px;
    margin: 0 auto 16px;
}

.channel-icon .fa {
    color: var(--accent) !important;
    font-size: 22px;
}

.contact-channel h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.contact-channel p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
}

.channel-note {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.contact-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    color: var(--text);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-list li .fa {
    color: var(--accent) !important;
    margin-top: 3px;
    width: 16px;
    flex-shrink: 0;
}

.contact-list li a {
    color: var(--text);
    text-decoration: none;
}
.contact-list li a:hover {
    color: var(--accent);
}

.response-expectation {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.response-expectation h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.response-expectation ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.response-expectation ul li {
    font-size: 15px;
    color: var(--text-muted);
    padding: 5px 0;
    padding-left: 16px;
    position: relative;
}
.response-expectation ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* CONTACT FORM */
.contact-form .form-control {
    background-color: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 8px;
}

.contact-form .form-control:focus {
    background-color: var(--surface2);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 0 2px rgba(220,38,38,0.2);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-form .row.g-3 {
    row-gap: 16px;
}

.contact-form h2 {
    margin-bottom: 20px;
}

/* ============================================================
   INSIGHTS LISTING — R78 (blog grid)
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--accent);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-img {
    height: 200px;
    background-color: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-card-body {
    padding: 20px;
    flex: 1;
}

.blog-card-body time {
    display: block;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 14px;
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 10px;
}

.legal-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal-content a {
    color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-address {
    font-size: 14px !important;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    padding: 4px 0;
}

.footer-col ul li a {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-contact-email {
    margin-top: 12px !important;
}

.footer-contact-email a {
    color: var(--text-muted) !important;
    font-size: 14px;
}
.footer-contact-email a:hover {
    color: var(--accent) !important;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--surface2);
    border-top: 2px solid var(--accent);
    padding: 18px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    color: var(--text);
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    color: var(--text);
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.cookie-text a {
    color: var(--accent);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

#cookie-accept {
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
#cookie-accept:hover {
    background-color: var(--accent-dark);
}

#cookie-decline {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
#cookie-decline:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    h1 { font-size: 44px; }
    h2 { font-size: 32px; }

    .hero-content h1 { font-size: 44px; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-5 { grid-template-columns: repeat(2, 1fr); }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .usecase-grid { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .contact-channels { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .culture-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .capability-block { flex-direction: column; }
}

@media (max-width: 575px) {
    h1 { font-size: 34px; }
    h2 { font-size: 26px; }

    .hero-content h1 { font-size: 34px; }
    .section { padding: 60px 0; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-5 { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .team-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .btn-gap { flex-direction: column; }
    .cookie-content { flex-direction: column; }
    .cookie-buttons { width: 100%; justify-content: flex-end; }
    .row.align-items-center .col-lg-6:last-child { margin-top: 24px; }
}

/* === Card Grid Alignment Fix (web0411 patch) === */
.row.features-grid {
    display: flex !important;
    flex-wrap: wrap !important;
}
.row.features-grid > [class*="col-"] {
    display: flex !important;
    flex-direction: column !important;
}
.feature-card-deep {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.feature-card-deep .feature-icon-sm {
    width: 52px;
    height: 52px;
    background-color: var(--accent-light, rgba(99,102,241,0.12));
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
    color: var(--accent);
}
.feature-card-deep .feature-icon-sm .fa,
.feature-card-deep .feature-icon-sm .fas,
.feature-card-deep .feature-icon-sm span {
    color: var(--accent) !important;
    font-size: 22px;
}

/* === Article / Blog image sizing (R-IMG) === */
.img-fluid,
.blog-hero-img,
.article-thumbnail img,
.article-thumbnail,
article img,
.post-content img,
.container-narrow img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px;
    margin: 24px 0;
}
