:root {
    --bs-primary: #006b5f;
    --bs-primary-rgb: 0, 107, 95;
    --ink: #17212f;
    --muted: #657184;
    --paper: #ffffff;
    --soft: #f6f8fb;
    --green: #008a4b;
    --teal: #00a7a5;
    --gold: #f2b705;
    --coral: #ef4d48;
    --blue: #2368d8;
    --violet: #7a43d5;
    --line: rgba(23, 33, 47, 0.12);
    --shadow: 0 24px 60px rgba(23, 33, 47, 0.13);
    --shadow-soft: 0 14px 36px rgba(23, 33, 47, 0.1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--muted);
    background: var(--paper);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    color: var(--ink);
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0;
}

h1 {
    font-size: 6rem;
    line-height: 0.95;
}

h2 {
    font-size: 2.55rem;
    line-height: 1.12;
}

h3 {
    font-size: 1.2rem;
}

p {
    line-height: 1.75;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1460px;
    }
}

.btn {
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    min-height: 48px;
    padding: 12px 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    box-shadow: 0 16px 30px rgba(0, 107, 95, 0.24);
}

.btn-primary:hover {
    color: #ffffff;
    background: #00564d;
    border-color: #00564d;
    box-shadow: 0 18px 34px rgba(0, 107, 95, 0.3);
}

.btn-light {
    color: var(--ink);
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 16px 30px rgba(23, 33, 47, 0.18);
}

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

.btn-outline-dark {
    color: var(--ink);
    border-color: rgba(23, 33, 47, 0.24);
    background: transparent;
}

.btn-outline-dark:hover {
    color: #ffffff;
    background: var(--ink);
    border-color: var(--ink);
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease-out, visibility 0s linear 0.45s;
    z-index: 99999;
}

#spinner.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease-out, visibility 0s linear 0s;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99;
    display: none;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
}

.custom-navbar {
    padding: 18px 0;
    background: rgba(255, 255, 255, 0);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.custom-navbar.scrolled,
.custom-navbar.menu-open {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(23, 33, 47, 0.1);
}

.custom-navbar.scrolled {
    padding: 10px 0;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    line-height: 1.15;
    max-width: 390px;
    text-decoration: none;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(23, 33, 47, 0.18);
    overflow: hidden;
    padding: 5px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-word {
    color: #ffffff;
    white-space: normal;
}

.custom-navbar.scrolled .navbar-brand .brand-word,
.custom-navbar.menu-open .navbar-brand .brand-word {
    color: var(--ink);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.84);
    font-weight: 800;
    margin: 0 8px;
    padding: 8px 4px;
    position: relative;
}

.custom-navbar.scrolled .nav-link,
.custom-navbar.menu-open .nav-link {
    color: #4e5b6c;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.custom-navbar.scrolled .nav-link:hover,
.custom-navbar.scrolled .nav-link.active {
    color: var(--gold);
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 2px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        #009739 0 18%,
        #fcd116 18% 33%,
        #000000 33% 47%,
        #ffffff 47% 61%,
        #ce1126 61% 76%,
        #fcd116 76% 88%,
        #009739 88% 100%
    );
    box-shadow: 0 8px 18px rgba(0, 151, 57, 0.18);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.nav-action {
    min-height: 44px;
    padding: 10px 16px;
}

.hero-section {
    min-height: 88vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 132px 0 72px;
}

.hero-slider,
.hero-slide,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slider {
    z-index: 0;
    background: #081420;
}

.hero-slide {
    opacity: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    transition: opacity 0.9s ease, transform 5.5s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide-chiringa {
    background-image: url("../img/Chiringa.jpg");
}

.hero-slide-palpo-lab {
    background-image: url("../img/palp2.png");
    background-position: center 42%;
}

.hero-slide-palpo-devices {
    background-image: url("../img/palp1.png");
    background-position: center 45%;
}

.hero-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 20, 32, 0.76) 0%, rgba(8, 20, 32, 0.54) 45%, rgba(8, 20, 32, 0.16) 100%),
        linear-gradient(180deg, rgba(0, 107, 95, 0.2) 0%, rgba(35, 104, 216, 0.16) 58%, rgba(242, 183, 5, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 10px 14px;
}

.section-kicker::before,
.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
}

.hero-section h1 {
    color: #ffffff;
    margin: 0 0 20px;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.12rem;
    max-width: 820px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-devices {
    position: absolute;
    right: 2%;
    bottom: 54px;
    width: 40%;
    min-width: 420px;
    height: 360px;
    pointer-events: none;
}

.hero-devices img {
    position: absolute;
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.28));
}

.hero-laptop {
    width: 58%;
    right: 18%;
    bottom: 18px;
}

.hero-phone {
    width: 34%;
    right: 0;
    bottom: 42px;
}

.hero-tablet {
    width: 30%;
    left: 3%;
    bottom: 30px;
}

.hero-arrows {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: grid;
    gap: 10px;
}

.hero-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero-arrow:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
}

.hero-metrics {
    margin-top: 54px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 980px;
}

.metric-tile {
    border-radius: 8px;
    padding: 18px;
    color: #ffffff;
    min-height: 148px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.metric-tile span {
    display: block;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
}

.metric-tile strong {
    display: block;
    font-size: 1.14rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.metric-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.94rem;
    line-height: 1.55;
}

.accent-green {
    background: rgba(0, 138, 75, 0.82);
}

.accent-gold {
    background: rgba(242, 183, 5, 0.86);
}

.accent-gold span {
    color: rgba(23, 33, 47, 0.58);
}

.accent-gold strong,
.accent-gold p {
    color: var(--ink);
}

.accent-coral {
    background: rgba(239, 77, 72, 0.84);
}

.accent-blue {
    background: rgba(35, 104, 216, 0.84);
}

.intro-band,
.partner-section {
    padding: 96px 0;
    background:
        linear-gradient(90deg, rgba(0, 138, 75, 0.08) 0 25%, transparent 25% 100%),
        #ffffff;
}

.section-text {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 44px;
}

.ecosystem-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 6px solid var(--green);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.ecosystem-card:nth-child(2) {
    border-top-color: var(--blue);
}

.ecosystem-card:nth-child(1) span {
    color: #005f39;
    background: #dff6ea;
}

.ecosystem-card:nth-child(2) span {
    color: #174fb3;
    background: #dce9ff;
}

.ecosystem-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.ecosystem-card div {
    padding: 26px;
}

.ecosystem-card span,
.factory-copy span,
.device-tag {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--ink);
    background: #ffe49a;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ecosystem-card h3,
.feature-row h3,
.device-card h3 {
    margin-bottom: 8px;
}

.ecosystem-card p,
.feature-row p,
.device-card p {
    margin-bottom: 0;
}

.section-space {
    padding: 112px 0;
}

.chiringa-section {
    background:
        linear-gradient(135deg, rgba(0, 138, 75, 0.16), rgba(0, 167, 165, 0.08)),
        #f4faf8;
}

.chiringa-section .section-kicker,
.chiringa-section h2 {
    color: #005f39;
}

.chiringa-section .section-kicker::before {
    background: var(--green);
}

.chiringa-section .image-frame {
    border: 4px solid rgba(0, 138, 75, 0.22);
}

.chiringa-laptop-frame {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.laptop-lid {
    position: relative;
    padding: 13px;
    border-radius: 8px 8px 6px 6px;
    background:
        linear-gradient(135deg, #0b1724, #25374d 48%, #0c1723),
        #111827;
    box-shadow: 0 28px 70px rgba(0, 65, 45, 0.18), 0 10px 26px rgba(23, 33, 47, 0.16);
}

.laptop-lid::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: translateX(-50%);
    z-index: 3;
}

.laptop-screen {
    position: relative;
    aspect-ratio: 1.98 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #071321;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.laptop-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 24%, transparent 70%, rgba(255, 255, 255, 0.08));
    pointer-events: none;
    z-index: 2;
}

.chiringa-screen-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 0.55s ease, transform 3.5s ease;
}

.chiringa-screen-slide.active {
    opacity: 1;
    transform: scale(1);
}

.laptop-base {
    height: 34px;
    margin: 0 auto;
    width: 92%;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, #dfe6ee 0%, #8c9aac 40%, #3b485a 100%);
    box-shadow: 0 18px 30px rgba(23, 33, 47, 0.16);
    position: relative;
}

.laptop-base::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 22%;
    height: 10px;
    border-radius: 0 0 10px 10px;
    background: rgba(23, 33, 47, 0.22);
    transform: translateX(-50%);
}

.laptop-base span {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -8px;
    height: 8px;
    border-radius: 0 0 999px 999px;
    background: rgba(23, 33, 47, 0.18);
    filter: blur(3px);
}

.chiringa-carousel-bar {
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    align-items: center;
    gap: 12px;
    margin: 22px auto 0;
    max-width: 520px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 138, 75, 0.16);
    box-shadow: 0 14px 34px rgba(0, 107, 95, 0.1);
}

.chiringa-carousel-btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: var(--green);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.chiringa-carousel-btn:hover {
    transform: translateY(-2px);
    background: #005f39;
}

.chiringa-carousel-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.chiringa-carousel-status strong {
    color: #005f39;
    font-size: 0.92rem;
}

.chiringa-carousel-status span {
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 900;
    font-size: 0.86rem;
}

.chiringa-carousel-status b {
    color: var(--green);
}

.image-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.image-frame img {
    width: 100%;
    min-height: 500px;
    object-fit: cover;
    display: block;
}

.image-frame-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.feature-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tech-stack-left {
    justify-content: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.tech-stack span {
    border-radius: 999px;
    padding: 9px 12px;
    color: #005f39;
    background: rgba(0, 138, 75, 0.12);
    border: 1px solid rgba(0, 138, 75, 0.18);
    font-size: 0.82rem;
    font-weight: 900;
}

.feature-row {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    padding: 20px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 138, 75, 0.18);
    box-shadow: 0 10px 28px rgba(0, 107, 95, 0.08);
}

.feature-row i {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--green);
    font-size: 1.45rem;
}

.feature-row:nth-child(2) i {
    background: var(--teal);
}

.feature-row:nth-child(3) i {
    background: #005f39;
}

.palpo-section {
    background:
        linear-gradient(135deg, rgba(35, 104, 216, 0.16), rgba(0, 167, 165, 0.08)),
        #f5f9ff;
}

.palpo-section .section-kicker,
.palpo-section h2 {
    color: #174fb3;
}

.palpo-section .section-kicker::before {
    background: var(--blue);
}

.section-heading-row {
    margin-bottom: 38px;
}

.factory-strip {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 360px;
    margin-bottom: 24px;
    box-shadow: 0 24px 60px rgba(35, 104, 216, 0.18);
}

.factory-strip img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

.factory-strip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 43, 102, 0.84), rgba(35, 104, 216, 0.26));
}

.factory-copy {
    position: absolute;
    left: 32px;
    bottom: 30px;
    z-index: 2;
    max-width: 460px;
}

.factory-copy span {
    color: #ffffff;
    background: var(--blue);
}

.factory-copy strong {
    display: block;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.15;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.pillar-card {
    border-radius: 8px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(35, 104, 216, 0.18);
    box-shadow: 0 14px 32px rgba(35, 104, 216, 0.1);
}

.pillar-card i {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--blue);
    border-radius: 8px;
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.pillar-card:nth-child(2) i {
    background: var(--teal);
}

.pillar-card:nth-child(3) i {
    background: var(--violet);
}

.pillar-card p {
    margin-bottom: 0;
}

.device-card {
    border: 1px solid rgba(35, 104, 216, 0.18);
    border-top: 6px solid var(--blue);
    border-radius: 8px;
    background: #ffffff;
    padding: 20px;
    min-height: 100%;
    box-shadow: 0 14px 32px rgba(35, 104, 216, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.device-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(35, 104, 216, 0.18);
}

.device-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin-bottom: 16px;
}

.device-tag {
    margin-bottom: 12px;
}

.tag-blue {
    background: #dce9ff;
    color: #174fb3;
}

.tag-green {
    background: #dff6ea;
    color: #00723e;
}

.tag-gold {
    background: #fff0bf;
    color: #765400;
}

.tag-coral {
    background: #ffe2df;
    color: #aa211d;
}

.impact-section {
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(16, 25, 38, 0.9), rgba(0, 107, 95, 0.82)),
        url("../img/innovation.jpg") center / cover;
    background-attachment: fixed;
}

.impact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.impact-copy h2,
.impact-copy p {
    color: #ffffff;
}

.section-kicker-light {
    color: #ffffff;
}

.impact-copy p:not(.section-kicker) {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.impact-stats div {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.impact-stats strong {
    color: #ffffff;
    font-size: 3rem;
    line-height: 1;
}

.impact-stats span {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    line-height: 1.5;
}

.logo-row {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 18px;
}

.logo-item {
    min-height: 180px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    display: grid;
    place-items: center;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(23, 33, 47, 0.08);
}

.logo-item img {
    width: 132px;
    height: 132px;
    object-fit: contain;
}

.logo-text {
    align-content: center;
    justify-items: start;
    border-top: 8px solid var(--green);
}

.logo-text:nth-child(3) {
    border-top-color: var(--gold);
}

.logo-text span {
    color: var(--ink);
    font-size: 2rem;
    font-weight: 900;
}

.logo-text small {
    color: var(--muted);
    font-weight: 800;
}

.contact-section {
    padding: 96px 0;
    background:
        linear-gradient(90deg, #ffffff 0%, #ffffff 55%, rgba(242, 183, 5, 0.18) 55% 100%);
}

.contact-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 42px;
    box-shadow: var(--shadow-soft);
}

.contact-panel h2 {
    max-width: 760px;
    margin-bottom: 14px;
}

.contact-panel p:last-child {
    margin-bottom: 0;
    max-width: 720px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer {
    padding: 26px 0;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 800;
}

.footer a:hover {
    color: var(--gold);
}

@media (max-width: 1199.98px) {
    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .hero-devices {
        opacity: 0.42;
        right: -8%;
    }

    .pillar-grid,
    .device-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    h1 {
        font-size: 4.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .custom-navbar {
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 18px 45px rgba(23, 33, 47, 0.1);
    }

    .navbar-brand {
        max-width: calc(100% - 72px);
    }

    .brand-word,
    .navbar .nav-link {
        color: var(--ink);
    }

    .navbar .nav-link::after {
        display: none;
    }

    .nav-action {
        margin-top: 8px;
        width: fit-content;
    }

    .hero-section {
        padding-top: 122px;
    }

    .hero-devices {
        display: none;
    }

    .hero-arrows {
        display: none;
    }

    .chiringa-laptop-frame {
        max-width: 680px;
    }

    .hero-metrics,
    .ecosystem-grid,
    .impact-layout,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .impact-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .logo-row {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 1.72rem;
    }

    .hero-section {
        min-height: auto;
        padding: 116px 0 54px;
    }

    .impact-section {
        background-attachment: scroll;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .impact-stats,
    .pillar-grid,
    .device-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        grid-template-columns: repeat(3, minmax(170px, 1fr));
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }

    .hero-metrics .metric-tile {
        scroll-snap-align: start;
    }

    .intro-band,
    .section-space,
    .partner-section,
    .contact-section {
        padding: 72px 0;
    }

    .ecosystem-card div,
    .contact-panel {
        padding: 24px;
    }

    .image-frame img,
    .factory-strip img {
        min-height: 320px;
        height: 320px;
    }

    .laptop-lid {
        padding: 9px;
    }

    .laptop-base {
        height: 24px;
        border-radius: 0 0 16px 16px;
    }

    .chiringa-carousel-bar {
        grid-template-columns: 42px 1fr 42px;
        gap: 8px;
        margin-top: 18px;
    }

    .chiringa-carousel-btn {
        width: 42px;
        height: 42px;
    }

    .chiringa-carousel-status {
        display: grid;
        justify-items: center;
        text-align: center;
        gap: 2px;
    }

    .factory-copy {
        left: 22px;
        right: 22px;
        bottom: 22px;
    }

    .factory-copy strong {
        font-size: 1.45rem;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 479.98px) {
    h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 1.48rem;
    }

    .navbar-brand {
        font-size: 0.82rem;
        gap: 8px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .metric-tile,
    .device-card,
    .feature-row {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
