:root {
    --red: #fe0000;
    --red-dark: #d40000;
    --red-soft: #ffe8e8;
    --ink: #111111;
    --muted: #5c5c5c;
    --line: #ececec;
    --page: #f7f7f8;
    --white: #ffffff;
    --black: #0b0b0b;
    --radius-pill: 999px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.navbar-dunamis {
    background: var(--black);
    padding: 0.85rem 0;
    z-index: 1040;
}

.navbar-dunamis .nav-link {
    color: #f3f3f3 !important;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.45rem 0.7rem !important;
}

.navbar-dunamis .nav-link:hover,
.navbar-dunamis .nav-link.active,
.navbar-dunamis .dropdown-toggle.show {
    color: #fff !important;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-lockup img {
    height: 46px;
    width: auto;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
}

.brand-copy {
    line-height: 1.05;
}

.brand-copy strong {
    display: block;
    color: var(--red);
    font-size: 1.12rem;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.brand-copy small {
    color: #bdbdbd;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.btn-pill {
    border-radius: var(--radius-pill) !important;
    padding: 0.78rem 1.35rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1;
}

.btn-red {
    background: var(--red);
    color: #fff;
}

.btn-red:hover {
    background: var(--red-dark);
    color: #fff;
}

.btn-black {
    background: var(--black);
    color: #fff;
}

.btn-black:hover {
    background: #000;
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: #fff;
}

.btn-ghost-light {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-ghost-light:hover {
    background: #fff;
    color: var(--ink);
}

.btn-nav {
    padding: 0.55rem 1rem;
    font-size: 0.86rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.15rem;
}

.lang-switch a {
    color: #bdbdbd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.lang-switch a.is-active,
.lang-switch a:hover {
    color: #fff;
}

.lang-switch span {
    width: 1px;
    height: 12px;
    background: #4a4a4a;
}

.dropdown-menu {
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 0.55rem;
    margin-top: 0.7rem !important;
}

.dropdown-item {
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--red-soft);
    color: var(--red);
}

.hero-slider {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: var(--black);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(11, 11, 11, 0.82) 0%, rgba(11, 11, 11, 0.5) 52%, rgba(11, 11, 11, 0.28) 100%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.2rem 0 2.4rem;
}

.hero-copy .display-title {
    color: #fff;
}

.hero-copy .lead-copy {
    color: #dedede;
}

.hero-copy .btn-ghost {
    color: #fff;
    border-color: #fff;
}

.hero-copy .btn-ghost:hover {
    background: #fff;
    color: var(--ink);
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.1rem;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    padding: 0;
}

.hero-dots button.is-active {
    width: 22px;
    background: var(--red);
}

.display-title {
    font-size: clamp(3.1rem, 6.4vw, 4.7rem);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.045em;
    color: var(--ink);
}

.display-title .accent,
.section-title .accent {
    color: var(--red);
}

.lead-copy {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 36rem;
    line-height: 1.65;
}

.hero-photos {
    position: relative;
    height: 520px;
}

.hero-photos img {
    position: absolute;
    width: 230px;
    height: 420px;
    object-fit: cover;
    object-position: top center;
    border-radius: 6px;
    filter: saturate(0.92);
}

.hero-photos .p1 {
    left: 0;
    top: 48px;
}

.hero-photos .p2 {
    left: 188px;
    top: 0;
    z-index: 2;
}

.hero-photos .p3 {
    left: 376px;
    top: 48px;
}

.hero-photos::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(180deg, transparent, #fbfbfc 80%);
    z-index: 3;
}

.soft-chip {
    display: inline-flex;
    align-items: center;
    background: var(--red-soft);
    color: var(--red);
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.95rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chip-light {
    background: #fff;
    color: var(--ink);
}

.hero-chip {
    position: absolute;
    left: 0;
    bottom: 1.6rem;
}

.section {
    padding: 3.6rem 0;
}

.section-follow {
    padding-top: 3.2rem;
}

.section-title {
    font-size: clamp(2.4rem, 5vw, 3.7rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.stat-block {
    position: relative;
    min-height: 360px;
}

.stat-number {
    font-size: clamp(8rem, 16vw, 13rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.06em;
}

.stat-number span {
    color: var(--red);
}

.stat-person {
    position: absolute;
    width: 168px;
    height: 168px;
    object-fit: cover;
    border-radius: 50%;
    top: 0;
    left: 46%;
    transform: translateX(-50%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.stat-caption {
    position: absolute;
    right: 8%;
    top: 38%;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.2;
}

.dark-band {
    background: var(--black);
    color: #fff;
    overflow: hidden;
}

.dark-band .lead-copy {
    color: #c9c9c9;
}

.tanzania-map {
    position: relative;
    min-height: 360px;
    max-width: 420px;
    margin-inline: auto;
    overflow: visible;
    padding-right: 1.5rem;
}

.tanzania-land {
    fill: #333333;
    stroke: #fe0000;
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.tanzania-map .city {
    position: absolute;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tanzania-map .city .dot {
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgba(254, 0, 0, 0.18);
    flex-shrink: 0;
}

.tanzania-map .city.is-hq {
    font-size: 0.8rem;
}

.tanzania-map .city.is-hq .dot {
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 10px rgba(254, 0, 0, 0.32);
}

.step-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.step-media {
    position: relative;
    height: 168px;
}

.step-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-num {
    position: absolute;
    left: 1.1rem;
    bottom: -18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(254, 0, 0, 0.28);
}

.step-body {
    padding: 2.1rem 1.5rem 1.7rem;
}

.media-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
}

.media-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.media-card.media-card-sm img {
    height: 128px;
}

.media-card .media-body {
    padding: 1.45rem 1.4rem 1.6rem;
}

.blog-hero-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

@media (max-width: 575.98px) {
    .blog-hero-image {
        height: 220px;
    }
}

.terminal {
    background: #111;
    color: #d7d7d7;
    border-radius: 18px;
    padding: 1.3rem 1.4rem 1.6rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.82rem;
    box-shadow: var(--shadow);
}

.terminal-dots span {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 5px;
}

.feature-card {
    background: #f3f3f4;
    border-radius: 28px;
    padding: 2rem 1.7rem;
    height: 100%;
    min-height: 240px;
}

.feature-card h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-hero {
    padding: 5.5rem 0 3.5rem;
    background: var(--page);
}

.media-card .row img {
    height: 100%;
    min-height: 240px;
}

.product-card {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.product-card img {
    height: 210px;
    width: 100%;
    object-fit: cover;
}

.footer-dunamis {
    background: var(--black);
    color: #d8d8d8;
    padding-top: 4.2rem;
}

.footer-dunamis a {
    color: #d8d8d8;
}

.footer-dunamis a:hover {
    color: #fff;
}

.footer-dunamis h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-dunamis .list-unstyled li {
    margin-bottom: 0.45rem;
}

.chat-fab {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 1050;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
}

.chat-fab:hover {
    color: #fff;
    background: #1ebe57;
}

.form-control,
.form-select {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    border-color: #e4e4e4;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 0.2rem rgba(254, 0, 0, 0.12);
}

.alert-success {
    border: 0;
    border-radius: 16px;
    background: #e9fff1;
    color: #146c36;
}

.login-card {
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    padding: 2.2rem;
    box-shadow: var(--shadow);
}

@media (max-width: 991.98px) {
    .hero-slider {
        height: 540px;
    }

    .hero-copy .display-title {
        font-size: clamp(2.3rem, 8vw, 3.2rem);
    }

    .navbar-collapse {
        padding-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-slider {
        height: 560px;
    }
}
