/* Features page — hero scope nav, chips, micro-proof (page-only) */

.features-hero-info {
    max-width: 36rem;
    position: relative;
    z-index: 2;
}

.features-hero-subhead {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.features-hero-jump-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.hero-scope-chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-scope-chip:hover,
.hero-scope-chip:focus-visible {
    background-color: var(--color-blue4) !important;
    color: #fff !important;
}

.hero-scope-chip:focus-visible {
    outline: 2px solid var(--color-blue4);
    outline-offset: 2px;
}

.features-hero-proof-inline {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 2.5rem;
}

.features-hero-proof-stat {
    white-space: nowrap;
}

.features-hero-proof-value {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-right: 0.25rem;
}

.features-hero-proof-label {
    color: #666;
}

.features-hero-proof-sep {
    color: #999;
}

.features-hero-visual {
    align-items: flex-start;
}

.features-hero-visual > div {
    align-items: flex-start;
}

.features-hero-image {
    width: auto;
    height: auto;
    max-width: 480px;
    max-height: 720px;
    object-fit: contain;
    flex-shrink: 0;
    align-self: center;
}

@media screen and (max-width: 576px) {
    .features-hero-proof-value {
        font-size: 16px;
    }
}

@media screen and (max-width: 991.98px) {
    main.services-page.style-5 .content.section-padding {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    main.services-page.style-5 .content.section-padding .info .mb-40 {
        margin-bottom: 1.5rem !important;
    }

    main.services-page.style-5 .content.section-padding .info .mt-50 {
        margin-top: 2rem !important;
    }

    main.services-page.style-5 .section-head.style-4 h2 {
        font-size: 30px;
        line-height: 1.35;
    }
}

@media screen and (min-width: 992px) {
    .features-hero-visual {
        justify-content: flex-end !important;
    }

    .features-hero-visual > div {
        justify-content: flex-end;
    }
}

/* Marketing block image + text balance (page-only) */
.features-block-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.features-block-visual .img {
    display: flex;
}

.features-block-visual--start .img {
    justify-content: center;
}

.features-block-visual--end .img {
    justify-content: center;
}

@media screen and (min-width: 992px) {
    .features-block-image {
        max-width: 420px;
    }

    .features-block-visual--start .img {
        justify-content: flex-start;
    }

    .features-block-visual--end .img {
        justify-content: flex-end;
    }
}

/* Also automate compact strip */
.features-also-intro {
    max-width: 36rem;
}

.features-also-card p:last-child {
    font-size: 15px;
    line-height: 1.55;
    color: #666;
}

/* Guides band under api-hub */
.features-guides-intro {
    max-width: 42rem;
    line-height: 1.6;
    color: #666;
}

.features-guides-panel {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Compare — compact single table */
.features-compare-intro {
    max-width: 42rem;
    line-height: 1.6;
    color: #666;
}

.features-compare-table-wrap {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.features-compare-matrix {
    min-width: 480px;
    margin-bottom: 0;
    border-collapse: collapse;
    --bs-table-bg: transparent;
}

.features-compare-matrix > :not(caption) > * > * {
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: none;
}

.features-compare-matrix thead th {
    padding: 0.75rem 1rem;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.features-compare-criterion {
    width: 32%;
    min-width: 9.5rem;
}

.features-compare-matrix tbody td,
.features-compare-matrix tbody th[scope="row"] {
    padding: 0.625rem 1rem;
    font-size: 14px;
    line-height: 1.45;
    vertical-align: top;
}

.features-compare-matrix tbody th[scope="row"] {
    font-weight: 600;
    color: #0f172a;
}

.features-compare-matrix tbody td {
    color: #334155;
}

.features-compare-group th {
    padding: 0.625rem 1rem;
    background: #f1f5f9;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.features-compare-group:first-child th {
    border-top: 0;
}

.features-compare-meta-col {
    width: 34%;
}

.features-compare-whapi-col {
    background-color: rgba(0, 102, 255, 0.04);
    border-left: 2px solid var(--color-blue4) !important;
    width: 34%;
}

.features-compare-matrix thead .features-compare-whapi-col {
    font-weight: 700;
    color: var(--color-blue4);
}

@media screen and (max-width: 767.98px) {
    .features-compare-matrix tbody th[scope="row"] {
        position: sticky;
        left: 0;
        z-index: 1;
        min-width: 8.5rem;
        background-color: #fff;
        box-shadow: 2px 0 6px rgba(15, 23, 42, 0.04);
    }

    .features-compare-group th {
        position: static;
        box-shadow: none;
    }
}

/* API hub — left sidebar stretches to code panel height */
.features-api-hub-sidebar {
    min-width: 11.5rem;
    flex-shrink: 0;
    align-self: stretch;
}

.features-api-hub-sidebar .nav-pills-custom {
    flex-wrap: nowrap;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

.features-api-hub-sidebar .nav-link {
    white-space: normal;
    line-height: 1.35;
}

/* ===============================================================
			[ * REST API Hub - Light Glassmorphism / Mirror style ] 
================================================================*/
.card-api-hub-light {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(20px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
  border: 1px solid rgba(12, 90, 219, 0.12) !important;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.05), 0 12px 36px rgba(12, 90, 219, 0.03) !important;
  border-radius: 16px !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-api-hub-light:hover {
  border-color: rgba(12, 90, 219, 0.25) !important;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08), 0 12px 36px rgba(12, 90, 219, 0.06) !important;
}

/* Ensure the background of code elements is clean, white-glass compatible */
.card-api-hub-light pre {
  background: rgba(241, 245, 249, 0.85) !important; /* Soft slate-100 to reduce glare and contrast */
  border: 1px solid rgba(12, 90, 219, 0.08) !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.03) !important; /* Slightly deeper inset shadow */
}

.card-api-hub-light code {
  background: transparent !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace !important;
  color: #1e293b !important; /* Elegant slate-800 for clean dark text */
}

/* Style main vertical pills (Create Group, Send Message, etc.) */
.card-api-hub-light .nav-pills-custom .nav-link {
  color: #475569 !important; /* Muted slate-600 */
  font-weight: 500 !important;
  font-size: 14px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  transition: all 0.25s ease !important;
  text-align: left !important;
  padding: 10px 16px !important;
  background: transparent !important;
  margin-bottom: 6px !important;
}

.card-api-hub-light .nav-pills-custom .nav-link:hover {
  color: #0c5adb !important;
  background: rgba(12, 90, 219, 0.06) !important;
}

.card-api-hub-light .nav-pills-custom .nav-link.active {
  color: #ffffff !important;
  background: #0c5adb !important;
  box-shadow: 0 8px 20px rgba(12, 90, 219, 0.18) !important;
  border-color: #0c5adb !important;
}

/* Style horizontal language tabs (SHELL, PHP, Python...) */
.card-api-hub-light .nav-tabs-custom {
  border-bottom: 1px solid rgba(12, 90, 219, 0.1) !important;
  margin-bottom: 1rem !important;
  gap: 4px !important;
}

.card-api-hub-light .nav-tabs-custom .nav-item .nav-link {
  color: #475569 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: all 0.25s ease !important;
  border-radius: 0 !important;
}

.card-api-hub-light .nav-tabs-custom .nav-item .nav-link:hover {
  color: #0c5adb !important;
  background: rgba(12, 90, 219, 0.04) !important;
}

.card-api-hub-light .nav-tabs-custom .nav-item .nav-link.active {
  color: #0c5adb !important;
  border-bottom: 2px solid #0c5adb !important;
  font-weight: 600 !important;
}

/* Adjust the left column documentation link */
.card-api-hub-light .btn-outline-primary,
.card-api-hub-light #api-hub-docs-link {
  color: #0c5adb !important;
  border: 1px solid rgba(12, 90, 219, 0.3) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.25s ease !important;
  font-weight: 500 !important;
}

.card-api-hub-light .btn-outline-primary:hover,
.card-api-hub-light #api-hub-docs-link:hover {
  color: #ffffff !important;
  background: #0c5adb !important;
  border-color: #0c5adb !important;
  box-shadow: 0 4px 12px rgba(12, 90, 219, 0.15) !important;
}

/* macOS window decorative dots */
.card-api-hub-light .decorative-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.card-api-hub-light .decorative-icon.red { background-color: #ff5f56; }
.card-api-hub-light .decorative-icon.yellow { background-color: #ffbd2e; }
.card-api-hub-light .decorative-icon.green { background-color: #27c93f; }

