
/* ===== CSS Variables - Aligned with Site Design System ===== */
:root {
    --hb-navy: #1e3a5f;
    --hb-navy-light: #2d6a9f;
    --hb-blue: #0093DE;
    --hb-blue-dark: #0074b8;
    --hb-accent: #374151;
    --hb-bg-light: #f8fafc;
    --hb-bg-card: #ffffff;
    --hb-text-primary: #1a202c;
    --hb-text-secondary: #4a5568;
    --hb-text-muted: #718096;
    --hb-border: #e2e8f0;
    --hb-radius: 12px;
    --hb-radius-lg: 16px;
    --hb-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --hb-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --hb-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --hb-transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
.hb-page * {
    box-sizing: border-box;
}

.hb-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--hb-text-primary);
}

.hb-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Page Header with Breadcrumb ===== */
.hb-page-header {
    background: linear-gradient(135deg, var(--hb-navy) 0%, var(--hb-navy-light) 100%);
    padding: 6rem 0 3rem;
    text-align: center;
    position: relative;
}

.hb-page-header nav {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

.hb-page-header nav ul {
    display: none;
}

.hb-page-header nav ol {
    display: none;
}

.hb-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
}

.hb-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--hb-transition);
}

.hb-breadcrumb a:hover {
    color: #fff;
}

.hb-breadcrumb span {
    color: rgba(255,255,255,0.5);
}

.hb-breadcrumb > span:last-child {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.hb-page-header .header-logo {
    max-width: 220px;
    width: auto;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    filter: brightness(0) invert(1);
}

.hb-page-header h1 {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    margin: 0 0 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: normal;
    line-height: 1.2;
}

.hb-page-header h1::before,
.hb-page-header h1::after {
    display: none !important;
    content: '' !important;
}

.hb-version-badge {
    background: var(--hb-blue);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    vertical-align: middle;
}

.hb-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Hero Section ===== */
.hb-hero {
    padding: 4rem 0;
    background: var(--hb-bg-light);
}

.hb-hero-card {
    background: var(--hb-bg-card);
    border-radius: var(--hb-radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--hb-shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.hb-hero-card h2 {
    font-size: 1.75rem;
    color: var(--hb-navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hb-hero-card p {
    font-size: 1rem;
    color: var(--hb-text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hb-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hb-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--hb-transition);
    cursor: pointer;
    border: none;
}

.hb-btn-primary {
    background: var(--hb-navy);
    color: #fff;
}

.hb-btn-primary:hover {
    background: var(--hb-navy-light);
    transform: translateY(-2px);
    box-shadow: var(--hb-shadow-md);
}

.hb-btn-secondary {
    background: var(--hb-navy-light);
    color: #fff;
}

.hb-btn-secondary:hover {
    background: var(--hb-navy);
    transform: translateY(-2px);
    box-shadow: var(--hb-shadow-md);
}

/* ===== Architecture Flow ===== */
.hb-architecture {
    padding: 4rem 0;
}

.hb-section-title {
    font-size: 1.75rem;
    color: var(--hb-navy);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hb-section-subtitle {
    font-size: 1rem;
    color: var(--hb-text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hb-arch-flow {
    background: var(--hb-bg-light);
    border-radius: var(--hb-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.hb-arch-flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hb-arch-step {
    background: var(--hb-bg-card);
    border: 2px solid var(--hb-border);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hb-navy);
    text-align: center;
    min-width: 120px;
}

.hb-arch-step.hb-highlight {
    background: var(--hb-navy);
    color: #fff;
    border-color: var(--hb-navy);
}

.hb-arch-arrow {
    color: var(--hb-blue);
    font-size: 1.25rem;
}

.hb-perf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.hb-perf-card {
    background: var(--hb-bg-card);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--hb-transition);
}

.hb-perf-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hb-shadow-md);
}

.hb-perf-card i {
    font-size: 2rem;
    color: var(--hb-blue);
    margin-bottom: 0.75rem;
}

.hb-perf-card h4 {
    font-size: 1rem;
    color: var(--hb-navy);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hb-perf-card p {
    font-size: 0.875rem;
    color: var(--hb-text-secondary);
    margin: 0;
}

/* ===== Version 4.4 Highlights ===== */
.hb-v4-highlights {
    padding: 4rem 0;
    background: var(--hb-bg-light);
}

.hb-v4-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.hb-v4-card {
    background: var(--hb-bg-card);
    border-radius: var(--hb-radius-lg);
    padding: 2rem;
    box-shadow: var(--hb-shadow-sm);
    transition: var(--hb-transition);
    border: 1px solid var(--hb-border);
}

.hb-v4-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hb-shadow-lg);
    border-color: var(--hb-blue);
}

.hb-v4-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--hb-navy) 0%, var(--hb-navy-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.hb-v4-card-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.hb-v4-card h3 {
    font-size: 1.25rem;
    color: var(--hb-navy);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.hb-v4-card p {
    font-size: 0.9375rem;
    color: var(--hb-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== Core Capabilities ===== */
.hb-capabilities {
    padding: 4rem 0;
}

.hb-cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.hb-cap-card {
    background: var(--hb-bg-card);
    border-radius: var(--hb-radius);
    padding: 1.75rem;
    border: 1px solid var(--hb-border);
    transition: var(--hb-transition);
}

.hb-cap-card:hover {
    box-shadow: var(--hb-shadow-md);
    border-color: var(--hb-navy-light);
}

.hb-cap-card h3 {
    font-size: 1.125rem;
    color: var(--hb-navy);
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hb-cap-card h3 i {
    color: var(--hb-blue);
    font-size: 1.25rem;
}

.hb-cap-card > p {
    font-size: 0.9375rem;
    color: var(--hb-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hb-cap-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hb-cap-features li {
    font-size: 0.875rem;
    color: var(--hb-text-muted);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.hb-cap-features li::before {
    content: "•";
    color: var(--hb-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.hb-cap-card .feature-image {
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: var(--hb-shadow-sm);
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix image overflow in all containers */
.hb-page img {
    max-width: 100%;
    height: auto;
}

.hb-gallery-item {
    overflow: hidden;
}

.hb-gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--hb-shadow-sm);
    cursor: zoom-in;
    transition: var(--hb-transition);
    display: block;
}

.hb-gallery-item img:hover {
    box-shadow: var(--hb-shadow-lg);
    transform: scale(1.02);
}

.hb-hero-card {
    background: var(--hb-bg-card);
    border-radius: var(--hb-radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--hb-shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .hb-page-header {
        padding: 3rem 0 2rem;
    }

    .hb-page-header h1 {
        font-size: 1.375rem;
    }

    .hb-page-header .header-logo {
        max-width: 180px;
        margin-bottom: 1rem;
    }

    .hb-breadcrumb {
        margin-bottom: 1rem;
        font-size: 0.8125rem;
    }

    .hb-subtitle {
        font-size: 1rem;
    }

    .hb-hero-card {
        padding: 1.5rem;
    }
    .hb-hero-buttons {
        flex-direction: column;
    }
    .hb-hero-buttons .hb-btn {
        width: 100%;
        justify-content: center;
    }
    .hb-perf-cards {
        grid-template-columns: 1fr;
    }
}

/* ===== Architecture & Data Flow ===== */
.hb-dataflow {
    padding: 4rem 0;
    background: var(--hb-bg-light);
}

.hb-dataflow-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hb-dataflow-text h3 {
    font-size: 1.375rem;
    color: var(--hb-navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hb-dataflow-text p {
    font-size: 1rem;
    color: var(--hb-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hb-dataflow-diagram {
    background: var(--hb-bg-card);
    border-radius: var(--hb-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--hb-shadow-md);
}

.hb-dataflow-diagram img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
}

/* ===== Technical Specifications ===== */
.hb-specs {
    padding: 4rem 0;
}

.hb-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hb-spec-card {
    background: var(--hb-bg-card);
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    padding: 1.5rem;
}

.hb-spec-card h4 {
    font-size: 1rem;
    color: var(--hb-navy);
    margin-bottom: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hb-spec-card h4 i {
    color: var(--hb-blue);
}

.hb-spec-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hb-spec-card ul li {
    font-size: 0.875rem;
    color: var(--hb-text-secondary);
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.hb-spec-card ul li::before {
    content: "›";
    color: var(--hb-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ===== Use Cases ===== */
.hb-usecases {
    padding: 4rem 0;
    background: var(--hb-bg-light);
}

.hb-usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.hb-usecase-card {
    background: var(--hb-bg-card);
    border-radius: var(--hb-radius);
    padding: 1.5rem;
    border-left: 4px solid var(--hb-blue);
    box-shadow: var(--hb-shadow-sm);
    transition: var(--hb-transition);
}

.hb-usecase-card:hover {
    box-shadow: var(--hb-shadow-md);
}

.hb-usecase-card h4 {
    font-size: 1.125rem;
    color: var(--hb-navy);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hb-usecase-card p {
    font-size: 0.875rem;
    color: var(--hb-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== Why HighByte (Benefits) ===== */
.hb-why {
    padding: 4rem 0;
}

.hb-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hb-why-card {
    background: var(--hb-bg-card);
    border-radius: var(--hb-radius);
    padding: 1.5rem;
    border: 1px solid var(--hb-border);
    transition: var(--hb-transition);
}

.hb-why-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hb-shadow-md);
}

.hb-why-card i {
    font-size: 1.75rem;
    color: var(--hb-blue);
    margin-bottom: 0.75rem;
}

.hb-why-card h4 {
    font-size: 1rem;
    color: var(--hb-navy);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hb-why-card p {
    font-size: 0.875rem;
    color: var(--hb-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== CTA Section ===== */
.hb-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--hb-navy) 0%, var(--hb-navy-light) 100%);
    text-align: center;
}

.hb-cta h2 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hb-cta p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hb-cta .hb-btn-primary {
    background: #fff;
    color: var(--hb-navy);
}

.hb-cta .hb-btn-primary:hover {
    background: var(--hb-bg-light);
}

/* ===== Image Gallery Strip ===== */
.hb-gallery-strip {
    padding: 2rem 0;
}

.hb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.hb-gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--hb-shadow-sm);
    cursor: zoom-in;
    transition: var(--hb-transition);
}

.hb-gallery-item img:hover {
    box-shadow: var(--hb-shadow-lg);
    transform: scale(1.02);
}

/* ===== Modal ===== */
.hb-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.hb-modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}

.hb-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--hb-transition);
    z-index: 10001;
}

.hb-modal-close:hover {
    color: var(--hb-blue);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hb-page-header {
        padding: 4rem 0 2.5rem;
    }

    .hb-page-header h1 {
        font-size: 1.5rem;
    }

    .hb-hero-card {
        padding: 1.5rem;
    }

    .hb-hero-card h2 {
        font-size: 1.375rem;
    }

    .hb-section-title {
        font-size: 1.5rem;
    }

    .hb-arch-flow-steps {
        flex-direction: column;
    }

    .hb-arch-arrow {
        transform: rotate(90deg);
    }

    .hb-cap-grid,
    .hb-v4-grid {
        grid-template-columns: 1fr;
    }

    .hb-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ===== Animations ===== */
@keyframes hbFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hb-animate {
    animation: hbFadeUp 0.6s ease forwards;
}
