/* -----------------------------------------------------------------------------
   Hardware Section — Hardware catalog and product detail page styles
----------------------------------------------------------------------------- */

/* =============================================================================
   HARDWARE CATALOG — Product listing (/hardware)
============================================================================= */

.product-card {
    background: white;
    border-radius: var(--radius-small-card);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-green);
}

.product-card:hover .product-image img { transform: scale(1.05); }

.dcode-intro .content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-cta {
    background: linear-gradient(135deg, #14161A 0%, #1a2e10 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}
.contact-cta .title   { color: white; margin-bottom: 1rem; }
.contact-cta .subtitle { color: var(--text-light); margin-bottom: 2rem; }

@media screen and (max-width: 768px) {
    .hardware-hero { padding: 3rem 0 2rem; }
    .product-catalog { padding: 2rem 0; }
    .product-card { padding: 1.5rem; }
    .dcode-intro { padding: 2rem 0; }
}

/* =============================================================================
   HARDWARE PRODUCT DETAIL — Individual product pages (/dma-mh, /dma-sa, etc.)
============================================================================= */

.product-hero {
    background: linear-gradient(135deg, var(--navbar-bg) 0%, var(--neutral-800) 100%);
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
    color: white;
}
.product-hero .title   { color: white; }
.product-hero .subtitle { color: var(--text-light); }

.product-hero-image {
    position: relative;
    border-radius: var(--radius-small);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1rem;
}
.product-hero-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(123, 185, 62, 0.1) 0%, rgba(20, 22, 26, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}
.product-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--radius-small) - 4px);
    position: relative;
    z-index: 0;
}

.spec-card .title { color: var(--text-primary); margin-bottom: 1rem; }

.spec-label {
    font-weight: 500;
    color: var(--text-primary);
    min-width: 180px;
}
.spec-value { color: var(--text-secondary); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--light-green);
    border: 1px solid rgba(123,185,62,0.25);
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-icon i {
    color: var(--primary-green);
    font-size: 1.25rem;
}

.feature-content h4 {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.product-cta .title   { color: var(--text-primary); margin-bottom: 1rem; }
.product-cta .subtitle { color: var(--text-secondary); margin-bottom: 2rem; }

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}
.back-link:hover { color: var(--primary-green); }
.back-link i { margin-right: 0.5rem; }

/* =============================================================================
   HARDWARE PLACEHOLDER — Hero / Status / CTA (engage.php pattern)
============================================================================= */

/* ─── HERO ─── */
.hw-hero {
    background: linear-gradient(135deg, #1a2e10 0%, #14161A 50%, #0e1012 100%);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

.hw-hero-tagline {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-green);
    border-left: 4px solid var(--primary-green);
    padding-left: 14px;
    margin-bottom: 1.5rem;
    display: block;
}

.hw-hero-title {
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hw-hero-title span { color: var(--primary-green); }

.hw-hero-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hw-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-green);
    border: 1px solid var(--primary-green);
    color: #ffffff;
    border-radius: var(--btn-radius);
    padding: 0.9rem 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    height: auto;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}
.hw-hero-btn-primary:hover { background: #96DC4B; border-color: #96DC4B; color: #ffffff; }

.hw-hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--btn-radius);
    padding: 0.9rem 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    height: auto;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}
.hw-hero-btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #ffffff; }

.hw-hero-dev-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(123, 185, 62, 0.1);
    border: 1px solid rgba(123, 185, 62, 0.35);
    border-radius: 20px;
    padding: 0.75rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-green);
    letter-spacing: 0.04em;
    margin-top: 0.5rem;
}
.hw-hero-dev-tag i { font-size: 0.85rem; }

.hw-hero .product-hero-image {
    border: 1px solid rgba(123, 185, 62, 0.2);
    box-shadow: none;
    background: none;
    backdrop-filter: none;
    padding: 0;
}
.hw-hero .product-hero-image::before { display: none; }

.hw-hero-channels {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hw-hero-channel-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hw-hero-channel-card:hover {
    background: rgba(123, 185, 62, 0.1);
    border-color: rgba(123, 185, 62, 0.35);
    transform: translateX(4px);
}

.hw-hero-channel-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(123, 185, 62, 0.15);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hw-hero-channel-body { flex: 1; }

.hw-hero-channel-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.15rem;
}

.hw-hero-channel-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.4;
}

.hw-hero-channel-arrow {
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.8rem;
    transition: color 0.2s, transform 0.2s;
}
.hw-hero-channel-card:hover .hw-hero-channel-arrow {
    color: var(--primary-green);
    transform: translateX(3px);
}

/* ─── STATUS MESSAGE (middle section) ─── */
.hw-status-msg {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4.5rem 0;
}

.hw-status-msg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(123, 185, 62, 0.1);
    border: 1px solid rgba(123, 185, 62, 0.3);
    border-radius: 20px;
    padding: 0.4rem 1.1rem;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}
.hw-status-msg-badge i { font-size: 0.65rem; }

.hw-status-msg-title {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--navbar-bg);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hw-status-msg-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.85rem;
}

.hw-status-msg-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-green);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}
.hw-status-msg-back:hover { color: var(--primary-green-dark); }
.hw-status-msg-back i { font-size: 0.7rem; }

/* ─── CTA ─── */
.hw-cta {
    background: linear-gradient(135deg, #14161A 0%, #1a2e10 100%);
    padding: 5rem 0;
    text-align: center;
}

.hw-cta-eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(123, 185, 62, 0.9);
    display: block;
    margin-bottom: 1rem;
}

.hw-cta-title {
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    font-weight: 300;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.hw-cta-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.hw-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-green);
    border: 1px solid var(--primary-green);
    color: #ffffff;
    border-radius: var(--btn-radius);
    padding: 0.9rem 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    height: auto;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}
.hw-cta-btn-primary:hover { background: #96DC4B; border-color: #96DC4B; color: #ffffff; }

.hw-cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--btn-radius);
    padding: 0.9rem 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    height: auto;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}
.hw-cta-btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #ffffff; }

/* =============================================================================
   HARDWARE HUB — Device cards (/hardware)
============================================================================= */

.hw-group {
    padding: 4.5rem 0;
}
.hw-group--gray { background: var(--neutral-50); }
.hw-group--white { background: #ffffff; }

.hw-group-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.hw-group-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--light-green);
    border: 1px solid rgba(123,185,62,0.25);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hw-group-title {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
}

.hw-group-count {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-tertiary);
    background: var(--neutral-100);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
}

.hw-dev-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.hw-dev-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hw-dev-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--neutral-100);
    position: relative;
}
.hw-dev-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hw-dev-card-body {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hw-dev-card-code {
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-green);
    margin-bottom: 0.35rem;
}

.hw-dev-card-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--navbar-bg);
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

.hw-dev-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.1rem;
    flex: 1;
}

.hw-dev-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.hw-dev-card-features li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}
.hw-dev-card-features li i {
    color: var(--primary-green);
    font-size: 0.6rem;
    flex-shrink: 0;
}

.hw-dev-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-green);
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s;
}
.hw-dev-card-link:hover { gap: 0.65rem; }

/* ODR single-device split row */
.hw-odr-row {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.hw-odr-image {
    width: 42%;
    flex-shrink: 0;
    height: 340px;
}
.hw-odr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hw-odr-body {
    flex: 1;
    padding: 2.5rem 2.5rem 2.5rem 0;
}

/* ─── OLD PLACEHOLDER CLASSES (kept for compatibility) ─── */

@media screen and (max-width: 768px) {
    .product-hero { padding: 3rem 0 2rem; }
    .product-hero-image { margin-top: 2rem; padding: 0.75rem; }
    .spec-section { padding: 2rem 0; }
    .spec-item { flex-direction: column; gap: 0.5rem; }
    .spec-label { min-width: auto; }
    .feature-grid { grid-template-columns: 1fr; }
    .hw-status-card { padding: 2rem 1.75rem; }
    .hw-hero { padding: 60px 0 50px; }
    .hw-hero-channels { margin-top: 2.5rem; }
    .hw-cta { padding: 3.5rem 0; }
    .hw-status-msg { padding: 3rem 0; }
    .hw-dev-grid { grid-template-columns: 1fr; }
    .hw-odr-row { flex-direction: column; }
    .hw-odr-image { width: 100%; height: 220px; }
    .hw-odr-body { padding: 1.75rem; }
    .hw-group { padding: 3rem 0; }
}

/* =============================================================================
   HARDWARE PRODUCT PAGES — DMS / EDG product sections
============================================================================= */

/* ─── HERO ICON BOX (EDG — no product photo) ─── */

/* ─── PRODUCT SECTION (center content block) ─── */
.hw-product-section {
    background: var(--neutral-50);
    padding: 5rem 0;
}

.hw-product-figure {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(123, 185, 62, 0.18);
}
.hw-product-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.hw-product-heading {
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--navbar-bg);
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.hw-product-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.hw-product-text--label {
    font-weight: 500;
    color: var(--navbar-bg);
    margin-bottom: 0.25rem;
}

.hw-product-tags {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.hw-product-tags li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}
.hw-product-tags li i {
    color: var(--primary-green);
    font-size: 0.6rem;
    flex-shrink: 0;
}

/* ─── PRODUCT VISUAL DARK (EDG center section) ─── */

/* ─── RESPONSIVE ─── */
@media screen and (max-width: 768px) {
    .hw-product-section { padding: 3.5rem 0; }
    .hw-hero-icon-box { min-height: 220px; padding: 2.5rem 1.5rem; }
    /* Hero mobile centering */
    .hw-hero .column:first-child { text-align: center; }
    .hw-hero .buttons { justify-content: center; }
    .hw-hero-subtitle { text-align: center; max-width: 100%; }
    .hw-hero-dev-tag { display: flex; width: fit-content; margin: 0.5rem auto 0; }
    .hw-hero-icon-box-icon { font-size: 3.5rem; }
    .hw-product-visual-dark { min-height: 260px; padding: 2.5rem 1.5rem; }
    .hw-product-visual-dark > i { font-size: 4rem; }
    .hw-product-figure { margin-bottom: 2rem; }
}
